Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2019
    Posts
    292
    Plugin Contributions
    0

    Idea or Suggestion Help regarding Encapsulated Plugins Mod for zc158

    Greetings.

    I noticed that local sales tax was updated by @lat9, but it is only in encapsulated plugin format for zc210+. My product site is zc158 so obviously it is not compatible.

    I checked the links below to add proper support for encapsulated plugins. It is not easy because it seems the guide below is based on zc201 files, not zc158.

    https://docs.zen-cart.com/dev/plugin...lated_plugins/
    https://gist.github.com/lat9/9deb64d...b0db5534bcf142

    Anyway, I have figured out how to modify/update all the files as mentioned above (no warning files generated), however, I have an issue for my local sales tax. In the checkout page, the proper tax amount was added to the total, but the line of local sales tax is not displayed near sub-total line. Only sub-total, shipping, and total. I checked all the mod files several times but I still cannot find out which file could be the issues. Any help would be appreciated.

    Or maybe it will be easy to manually convert encapsulated plugin files back into regular files?

    https://docs.zen-cart.com/dev/plugin...ns/converting/

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,361
    Plugin Contributions
    94

    Default Re: Help regarding Encapsulated Plugins Mod for zc158

    Quote Originally Posted by njcyx View Post
    Greetings.

    I noticed that local sales tax was updated by @lat9, but it is only in encapsulated plugin format for zc210+. My product site is zc158 so obviously it is not compatible.

    I checked the links below to add proper support for encapsulated plugins. It is not easy because it seems the guide below is based on zc201 files, not zc158.

    https://docs.zen-cart.com/dev/plugin...lated_plugins/
    https://gist.github.com/lat9/9deb64d...b0db5534bcf142

    Anyway, I have figured out how to modify/update all the files as mentioned above (no warning files generated), however, I have an issue for my local sales tax. In the checkout page, the proper tax amount was added to the total, but the line of local sales tax is not displayed near sub-total line. Only sub-total, shipping, and total. I checked all the mod files several times but I still cannot find out which file could be the issues. Any help would be appreciated.

    Or maybe it will be easy to manually convert encapsulated plugin files back into regular files?

    https://docs.zen-cart.com/dev/plugin...ns/converting/
    That version of the Local Sales Tax plugin doesn't have a separate order-total output. Its tax calculations are simply registered within the order's "Tax" and "Total" outputs.

  3. #3
    Join Date
    Apr 2019
    Posts
    292
    Plugin Contributions
    0

    Default Re: Help regarding Encapsulated Plugins Mod for zc158

    Hi @lat9, thanks for your reply.

    I see. But still, there is no tax line show up at the checkout page. Only three lines are displayed: sub-total, shipping and total.

    The tax amount is indeed calculated correctly, which was added to the total amount.

  4. #4
    Join Date
    Apr 2019
    Posts
    292
    Plugin Contributions
    0

    Default Re: Help regarding Encapsulated Plugins Mod for zc158

    Hi @lat9, thanks for your tip. I finally figured it out!

    Under the order-total page, I have to enable both ot_tax and ot_local_sales_taxes. Then the checkout page will display as normal.

    If I only enable ot_local_sales_taxes, no tax will be displayed.

    I only use local sales tax, so it is empty under admin--locations/taxes--tax rates.

    The previous version doesn't seem to work like this, but anyway it works now.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,361
    Plugin Contributions
    94

    Default Re: Help regarding Encapsulated Plugins Mod for zc158

    Quote Originally Posted by njcyx View Post
    Hi @lat9, thanks for your tip. I finally figured it out!

    Under the order-total page, I have to enable both ot_tax and ot_local_sales_taxes. Then the checkout page will display as normal.

    If I only enable ot_local_sales_taxes, no tax will be displayed.

    I only use local sales tax, so it is empty under admin--locations/taxes--tax rates.

    The previous version doesn't seem to work like this, but anyway it works now.
    Thanks for the post-back with the solution!

 

 

Similar Threads

  1. Encapsulated Plugins - Payment modules
    By niccol in forum Code Collaboration
    Replies: 2
    Last Post: 2 Feb 2022, 09:47 PM
  2. v157 Encapsulated Plugins
    By niccol in forum Bug Reports
    Replies: 6
    Last Post: 22 Jul 2021, 05:53 PM
  3. v157 encapsulated plugins require question....
    By carlwhat in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 13 Oct 2020, 12:22 AM
  4. v150 Looking for help Merging Files for Plugins
    By CnTGifts in forum General Questions
    Replies: 3
    Last Post: 27 Aug 2012, 06:39 AM
  5. Question regarding stock attributes mod
    By fright-rags in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Sep 2007, 02:03 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