Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Zen Cart Structured Data Module inv VAT

    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

  2. #2
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Zen Cart Structured Data Module inv VAT

    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); ?>,

  3. #3
    Join Date
    Dec 2008
    Location
    New Zealand
    Posts
    88
    Plugin Contributions
    1

    Default Re: Zen Cart Structured Data Module inv VAT

    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.

  4. #4
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Zen Cart Structured Data Module inv VAT

    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)

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Zen Cart Structured Data Module inv VAT

    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.

  6. #6
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Zen Cart Structured Data Module inv VAT

    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); ?>,

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Zen Cart Structured Data Module inv VAT

    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.

  8. #8
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Zen Cart Structured Data Module inv VAT

    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?

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Zen Cart Structured Data Module inv VAT

    Quote Originally Posted by Congerman View Post
    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);

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Zen Cart Structured Data Module inv VAT

    if you post your questions (with a link back to this thread), someone can better help.
    You should always post in the thread relevant to the plugin you are asking about, for obvious reasons.

    Use the latest version, it uses prices with tax.
    https://github.com/torvista/zen-cart_Structured-Data
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 Structured Data plugin?
    By joejoe in forum All Other Contributions/Addons
    Replies: 47
    Last Post: 18 Feb 2017, 06:13 PM
  2. v150 Does V1.5.5a have Google Structured Data tags built in?
    By Johnnycopilot in forum General Questions
    Replies: 3
    Last Post: 13 May 2016, 03:04 PM
  3. v150 Contact# structured data markup
    By ShopVille in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2014, 03:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR