View Single Post
  #4  
Old 08-08-2009, 03:27 PM
 
nick2021 nick2021 is offline
 

Member
  
Join Date: Jul 2009
Posts: 27
 

Default Re: Make varients update both price and extra field price

When you have a product with varients, xcart wholesaling doesn't work, which is what it says in the appropriate section of the admin backend.

Even if the price would be changed depending on what user type is logged in, I want non members to see how much they would save on a particular product varient if they were a member. This is no problem if you don't have a variant list.

This should be really simple-- As of right now, the xcart price changes when you select a variant but rather than updating just one field, i want it to update a number I have set as an extra field.

So say my price is $1000 and a variant adds $200 to it. When selected the price displays $1200. And then lets say my extra field is $800, when the variant is selected I want it to update and say $1000.

I'm selling car parts, so one pair of shocks is a different price depending on what car it is for.

Whatever line of code tells the cart to change the price, I need it to change the number in my extra field.

Even if xcart doesn't recognize the extra field, it should be as easy as going into the extra field tpl and assigning a variable to it and then going into the file responsible for the variants list and telling it to also change the variable assigned to the extra field.
__________________
Version 4.2.2
Reply With Quote