Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2015
    Location
    Houston
    Posts
    2
    Plugin Contributions
    0

    Default Need help decoding a line of HTML code

    I made a fresh installation of v1.5.5. I installed using FTP and Windows10. My installation has two mods installed. One is the Alysa Rounded skin and the other is a "Selling Gold" mod which I changed to "Selling Silver".

    I have two product types configured on my site. They are "Product - General" and "Product - Silver". I created one product using each product types. When trying to load the "Product - Silver" from the cart I get a 404 error. The product "Product - General" loads and displays properly.

    The line of code in the cart page for the "Product - Silver" looks like this:

    <a href="http://cookgarza.com/commerce/index.php?main_page=product_silver_info&amp;cPath=5&amp;products_id=5"><img src="images/no_picture.gif" alt="1 oz Johnson Matthey Bar - S/N" title=" 1 oz Johnson Matthey Bar - S/N " width="100" height="80"><br>1 oz Johnson Matthey Bar - S/N</a>

    The line for the "Product - General" item looks like this:

    <a href="http://cookgarza.com/commerce/index.php?main_page=product_info&amp;cPath=5&amp;products_id=6"><img src="images/no_picture.gif" alt="Test Product" title=" Test Product " width="100" height="80"><br>Test Product</a>

    Can someone please tell me why the first line of code generates the "404"? Apparently it is trying to load a page, but something is missing.

    Thank you

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Need help decoding a line of HTML code

    So the 404 error is a page not found error. The html referenced is what is generated to find your new "page". There are a series of files involved with adding a product type. From the sounds of it, the gold plugin addressed that for the gold product type, but in transitioning it to silver, something was missed.

    Ideally, such a change in the product type would involve only changing every occurrence of the word gold to silver, wherever it was used. So within the files and in the file and folder names themselves. This is where I would start looking to resolve your issue.

    Ohh, and capitalization is important in all locations changed. CAPS should stay capitalized, lowercase should remain lowercase.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Need help decoding a line of HTML code

    It seems the "Selling Gold?" plugin only accounts for admin-side things, and does nothing with catalog-side (storefront-side) files.

    You'll probably also need to duplicate these:

    /includes/modules/pages/product_info/*.*
    as
    /includes/modules/pages/product_silver_info/*.*

    and
    /includes/templates/template_default/templates/tpl_product_info_display.php
    as
    /includes/templates/NAME_OF_YOUR_TEMPLATE_FOLDER/templates/tpl_product_silver_info_display.php


    It's also worth noting that the "Selling Gold" plugin is based on files from ZC v1.3.8 ... which is from a very long time ago. So the files it's having you replace probably shouldn't be replaced directly. Instead you should "merge" their changes into your own files. That's done by comparing the files they supply against the files from original v138 (using a tool like WinMerge) to identify the customizations done, and then copy/merge/adapt those customizations into your new site's files. And of course then test.
    .

    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.

 

 

Similar Threads

  1. need to place HTML code to display image on site.
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 May 2011, 06:08 AM
  2. Need help to write correct line of code...
    By alyona in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2011, 02:29 AM
  3. Replies: 2
    Last Post: 19 Sep 2010, 06:43 PM
  4. Question about a line of HTML/CSS code...
    By meowhead in forum General Questions
    Replies: 2
    Last Post: 13 Jan 2009, 06:37 AM
  5. Help with HTML code in product description
    By mikenandrea in forum General Questions
    Replies: 20
    Last Post: 9 Jan 2008, 12:46 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