Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,346
    Plugin Contributions
    94

    Default Re: Shortcodes for Zen Cart

    @nicksab, what version of Zen Cart is being used?

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

    Default Re: Shortcodes for Zen Cart

    I'm not seeing that issue for the products you posted; what changed?

  3. #13
    Join Date
    Apr 2011
    Posts
    507
    Plugin Contributions
    0

    Default Re: Shortcodes for Zen Cart

    Quote Originally Posted by lat9 View Post
    @nicksab, what version of Zen Cart is being used?
    I am on ZC 2.0.1 with Php 8.3

    Quote Originally Posted by lat9 View Post
    I'm not seeing that issue for the products you posted; what changed?
    I had to remove the short code in order to get my product listing to display again unfortunately. I added a regular link in the product description for now

  4. #14
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,346
    Plugin Contributions
    94

    Default Re: Shortcodes for Zen Cart

    @nicksab, I've got an update that addresses both issues you'd posted (using short codes in EZ-Pages and the recursion/out-of-memory one).

    See the plugin's GitHub repository for the updates: https://github.com/lat9/zen_short_codes

  5. #15
    Join Date
    Apr 2011
    Posts
    507
    Plugin Contributions
    0

    Default Re: Shortcodes for Zen Cart

    Quote Originally Posted by lat9 View Post
    @nicksab, I've got an update that addresses both issues you'd posted (using short codes in EZ-Pages and the recursion/out-of-memory one).

    See the plugin's GitHub repository for the updates: https://github.com/lat9/zen_short_codes
    Thank you lat9 for your time and fixing my issues. It is much appreciated

    I will give it a try over the weekend

    I have another question though and not sure if it is possible:

    When using short code, a category /product link is displayed

    [zenprod id=XX text="here"] => "here" is displayed as a link

    but would it possible to have:

    [zenprod id=XX text="here"] => "similar product here" with "here" being the only clickable text

    I guess what i am asking is : Would it be possible to display additional , non-clickable text automatically when entering a short code?

    Hope this make sense

    Thanks again for the amazing work

  6. #16
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: Shortcodes for Zen Cart

    To cut a long story short and to demonstrate the issue briefly with my custom shortcode....

    If in

    zc_plugins\ZenShortCodes\v1.0.0\catalog\includes\classes\ShortCodes\zenprod.php

    (still using 1.0.0 due to problem reported for 1.1.0).

    I add

    Code:
    $products_model = zen_get_products_model($products_id);
    no problem.

    But use this:

    Code:
    $products_model = zen_get_products_model((int)$_GET['products_id']);
    and I get an out of memory error.
    $_GET['products_id'] IS set and is the expected number.

    I'm trying to use a shortcode in a product description that references that same product, and wanted to avoid needing to manually pass the id.

    (An aside is that on the product_info page this shortcode code is parsed 137 times!)

    This is all on a vanilla ZC, php 8.4.5.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #17
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: Shortcodes for Zen Cart

    While maybe an isoteric anomaly, I was intending to use a shortcode to create a curl request to a manufacturer API to create a link to the manufacturers current documentation, on the product page.
    Since that fails with the same memory error, it seemed easier to investigate the GET of the previous post...I don't see why that should be causing a problem...but the ins and outs of the plugin framework are still a bit advanced for me!
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to Contribute to Zen-Cart - aka Zen-Cart for Dummies!
    By g2ktcf in forum General Questions
    Replies: 6
    Last Post: 1 Jun 2022, 05:10 PM
  2. Updated wamp + zen cart tutorial for Zen Cart 1.3.8a and Wamp Server 2.0i
    By dakos in forum Installing on a Windows Server
    Replies: 20
    Last Post: 29 Mar 2010, 01:07 AM
  3. Replies: 1
    Last Post: 23 Mar 2010, 05:23 AM
  4. My idea for accessing zen cart sessions outside of zen...
    By glenelkins in forum General Questions
    Replies: 25
    Last Post: 2 Oct 2008, 10:57 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