Can someone please advise how to change the code below to display price inc Tax / VAT
"price": <?php echo round(zen_get_products_actual_price($products_id),2); ?>,
Thanks
Printable View
Can someone please advise how to change the code below to display price inc Tax / VAT
"price": <?php echo round(zen_get_products_actual_price($products_id),2); ?>,
Thanks
This is my temporary fix but not ideal as it requires hard coding the vat multiplyer. Tried calling zen tax rate but it did not work
"price": <?php echo round(zen_get_products_actual_price($products_id) * (1.2),2); ?>,
Do your display prices include VAT? A lot of VAT countries have similar rules to here & all our prices are shown including GST, so zen_get_products_display_price( $products_id) should do what you need.
Tried that but it still showed the price ex VAT.
"price": <?php echo round(zen_get_products_display_price($products_id),2); ?>,
I use the inc ex tax mod so both inc and ex show on the product page to satisfy google
I just need to find out how to call the zen tax rate in the multiplier * (1.2)
First, what are your store's settings for Configuration->My Store->Display Prices with Tax and Display Prices with Tax in Admin? Those settings govern whether or not to include the associated tax in any price's display.
Tried it with inc ex and ex inc. I do thank you for your input but what I would like to know is how to change my multiplier in the code to draw on the zen tax rate so I do not have to update this code if the tax rate changes.
"price": <?php echo round(zen_get_products_actual_price($products_id) * (1.2),2); ?>,
I'm not familiar with the details of the Structured Data plugin; perhaps if you post your questions (with a link back to this thread), someone can better help.
Tnx . I am not sure why you would have to be familiar with the details of the Structured Data plugin to advise on how to pull the zen cart tax rate into that line of code instead of my 1.2 multiplier.
Anyone advise on the code change needed?
That's my point, there are additional fields that can be used to gather a product's specific tax rate and I don't know what product-related fields are available.
If the product's tax_class_id is available (as a $tax_class_id variable for the example below), then you can use something like
Code:round(zen_add_tax(zen_get_products_actual_price($products_id), zen_get_tax_rate($tax_class_id)), 2);
You should always post in the thread relevant to the plugin you are asking about, for obvious reasons.Quote:
if you post your questions (with a link back to this thread), someone can better help.
Use the latest version, it uses prices with tax.
https://github.com/torvista/zen-cart_Structured-Data
that still shows it ex VAT, tnx for trying
Couldn't say.Quote:
Do I just start again with the files from the link you sent?
Same process as with testing any new plugin on your development server, roll back to the db and fileset prior to the install.
Not true! I offered to do the fixes within 72 hours. You insisted they be done immediately. I said "OK, buy an install." You said, "No - IMMEDIATELY AND FREE. OR I'LL DO A CHARGEBACK!"
At that point I lost interest in working with you. But I can see by the hours you have wasted on trying to get this free that you're an incredibly savvy person and I'm sure you'll be a huge success!
Wow! What a great opportunity!
Sadly, the owner of my company has a strict "no a**holes" policy, otherwise I'd jump at it!
Are there not forum rules about that sort of language? Shame on you. Not only sells a faulty product but then verbally abuses the purchaser what a low life. And I bet the moderators delete my post instead of yours "In the club boy"
Now you have diluted my question I will ask it again
Can someone please advise how to change the code below to display price inc Tax / VAT
"price": <?php echo round(zen_get_products_actual_price($products_id),2); ?>,
Thanks
Wouldn't you want to use zen_get_products_display_price instead of zen_get_products_actual_price?
Sorry, I don't have any other ideas. Not sure why it wouldn't display prices incl vat if the admin is set to display incl taxes. That is the function to display the price with or without taxes based on admin config. I do know that the free version that torvista listed will work, get it from his github repo