Re: X5 - Pointers Please for Adding Attribute Codes to SKU
He likes the system he has.
It works pretty well on v4.. every option has a code and the SKU is built automatically as the customer chooses their options.
The product variants module is too much work in this case. He doesn't need inventory tracking and with 3000 products, making a sku manually for each option is going to make his head explode.
I've made some progress. I had it working in JavaScript to the point of make the SKU on the product page change as options were selected but realised that there's no easy entry point to saving this to the cart. On v4 there's a PHP function that creates a product from scratch when it's added to the cart and the SKU was created at this point from the chosen options.
I can create the SKU now on the server by hacking about with the Attribute classes but I need some way of getting this created SKU assigned to the product in the cart.
__________________
Core version: 5.5.xx
|