View Single Post
  #3  
Old 07-11-2018, 05:05 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Adjusting Variants Table View Add-On

Hi @megretson,

Welcome to X-Cart forums and thank you for your question!

There is no way to add 'Add to cart' button to each row by using one of existing widgets. The reason is that default 'Add to cart' button uses 'attribute_values' inputs to know what product attributes are submitted, while 'Add to cart' button of the module always submits all possible variants and then removes items with 0 quantity, which you do not have.

A good way to approach this problem is to enable submitting 'attribute_values' while hitting 'Add to cart' button and everything should start working.

Meanwhile, I will pass the feedback to the developer. Maybe they will add this feature for future releases.

Tony

Quote:
Originally Posted by megretson
Hi All!

I am using X-Cart version 5.3.5.4. I am attempting to change the look of the variants table add-on, so that in the last column of the table, each variant has an add to cart button. It should look sort of like this website: https://store.makerbot.com/filament/pla-large/

I've managed to add a generic "Add to Cart" button into this last column, but it adds every variant into the cart, rather than just the variant and quantity for that row. Please let me know if there is any additional information I can provide or is needed to answer this question.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote