Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Where does this CRAZY encrypted number come from?

    I use the attribute image changing routine. Everything works great until I add an item to my cart and then click my cart link to return to the product. The problem is a bit of code that becomes embedded in my page after the add.

    [FONT=Courier New]<select name="id[3]" id="attrib-3" onchange="getattribimage('id[2]',270,270, this.value,3:61a814e571cc23679040247e4fa9615f);">[/FONT]
    [FONT=Courier New][/FONT]
    [FONT=Courier New]What is the information following the "3:"? Is it a cart session? Is it critical?[/FONT]
    DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Where does this CRAZY encrypted number come from?

    It is critical, think of it as the "id" of the attributes chosen.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Re: Where does this CRAZY encrypted number come from?

    Thank you. But...if I remove it from the link in the shopping cart (back to the product page), it will still function, correct?

    Based on some A/B testing, it looks like this crazy number is messing up my javascript (probably the colon). I can remove it FROM THE CART LINK ONLY and I think the cart will still function properly. Correct?

    I am currently looking at parsing the right side after the colon.

    THANKS!
    DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Where does this CRAZY encrypted number come from?

    The entire number including the colon and hash after the colon are important if someone is attempting to edit the actual items already in the shopping cart. If you don't want to let them do that, feel free to remove the colon and hash.

    But wouldn't it be better instead to url-encode the colon from within your script that's breaking things?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Re: Where does this CRAZY encrypted number come from?

    I think you're probably correct about coding, but once I realized the link was NOT relative and there were two colons in the address (the full string actually includes the http://), I decided to simply customize the code and link back to the product category anyway.

    In case anyone is interested, use this line to link back to the category from the shopping cart product.

    <a href="index.php?main_page=index&cPath=<?php echo zen_get_products_category_id($product['id']);?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo zen_get_categories_name_from_product($product['id']) . ' - ' . zen_get_products_description($product['id']) . ' ' . $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>

    What I'm curious about now is how to show an attribute-specific image in the cart. In my case, I have a "red" shirt image tied to the attribute "red". It displays the correct image when I select the attribute, but it displays the base image in the cart. Any thoughts?
    DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

 

 

Similar Threads

  1. Where'd this space come from?!
    By travellers in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Dec 2008, 01:55 PM
  2. Where does the configuration drop down list come from?
    By colemanpa in forum General Questions
    Replies: 0
    Last Post: 26 Sep 2008, 05:24 AM
  3. ÿþ ?? Where does it come from??
    By Sunabac in forum General Questions
    Replies: 13
    Last Post: 6 Jan 2007, 05:10 AM

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