Price Editing With Wix Code

Hi All,

I have something I want to achieve using Wix code. Please shoot me down if it isn’t within the realms of possibility.

Pre Button Clicked Settings

  • Price Of The Item Is Hidden

Button Clicked Action

  • Price Of Item Is Reduced By £0.20
  • Item Price Is Now Visible And Available To Buy At The Reduced Price.

Is this functionality at all possible with the new Wix Code Store features?

Thanks in advance,

Tim

Hi Tim:

Wix Code can give you this functionality however you can’t programatically change pricing if you haven’t set up the pricing information on the product page as options for example.

Most of the store information is managed in your site dashboard so you need to preconfigure your pricing options before you can manipulate how the information is displayed programatically.

If you haven’t already - read this guide and take a look at the example code to get you familiar with how to use Store product data in code.