Create a random product code when adding to cart?

Hello,

In the wiki it recommends creating a random product code for multiple sets of bundled products, each time the product is added to the cart: https://wiki.foxycart.com/v/2.0/products#cautionadding_multiple_sets_of_products

Does anybody have a script that can make this happen?

Comments
  • fc_adamfc_adam FoxyCart Team
    edited April 2017
    @Epotratz,

    Good question - and I'm sorry for the delay in answering! I'm not aware of anyone developing a script to handle this - but it would depend on how you're managing your products. I believe you're making use of link/form validation - is that right? Are your product links static as well, in that they're hard-coded on the page rather than being added using a CMS or similar and rendering the final page using a server-side language like PHP?
  • Hey Adam,

    It looks like I figured out a way to handle this without needing to do the random product code. Thanks for the follow up.
Sign In or Register to comment.