awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
863 stars 474 forks source link

Variable pricing bug #7119

Open CodeCurosity opened 5 years ago

CodeCurosity commented 5 years ago

[purchase_link id="494" text="Add to Cart" style="button" price_id="1"] [purchase_link id="494" text="Add to Cart" style="button" price_id="2"] [purchase_link id="494" text="Add to Cart" style="button" price_id="3"]

Only one option works, it only selects first on all 3 buttons.

cklosowski commented 5 years ago

@codecurosity

Can you give a little more information as to how you are using these? Are all 3 on the same page? Can you supply a screenshot of what your seeing?

Also what version of EDD is this on and what version of WordPress?

CodeCurosity commented 5 years ago

Hi, Sorry for the late reply, we have made a pricing page and included buttons as shortcode so yes on same page but as you can see each shortcode has different price id but when you add the item to the cart only one item is added to the cart which is ID 1, so now we have to create separate downloads for that to work which is not ideal as we have to upload separate versions to each download.

In short setting variable pricing in shortcode using price_id doesn't work.

[purchase_link id="494" text="Add to Cart" style="button" price_id="1"]

Using latest EDD & WP