Miva Merchant Community Forums

Page 2 of 2 FirstFirst 1 2
  1. #11
    Join Date
    Nov 2006
    Location
    Groton Vermont
    Posts
    1,704

    Default Re: short links not working for category tree and products.

    Quote Originally Posted by herbchina View Post
    Thanks,
    Domain settings is using "product" & "category".

    I just spotted an error in the category tree file and everything is ok with the Category tree links. They now take me to the category product listing display.

    BUT When I click on a product I still get an error message "Page '3703' no longer exists" (3703 is a product code.)

    Which file is the problem in - .
    Category Product List Layout or Product Display Layout??

    You need to edit the product display layout tab of the CTGY page. The actual link you that currently have surrounding your product image and product name is incorrect for the way you have the product identifier set up.

  2. #12
    Join Date
    Apr 2007
    Location
    nj
    Posts
    67

    Default Re: short links not working for category tree and products.

    Mark,

    Here is the file for "Products Display Layout". What should be changed?? Thanks.

    ----------------------
    <table border="0" cellpadding="5" cellspacing="0">
    <tr><td align="left" valign="middle" colspan="2">
    <mvt:item name="fonts" param="hdr_font">
    <b>&mvt:product:name;</b>
    </mvt:item>
    </td></tr>
    <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
    <tr>
    <td align="center" valign="top" rowspan="4">
    <mvt:if expr="NOT ISNULL l.settings:product:image">
    <img src="&mvte:product:image;" alt="&mvte:product:name;">
    <mvt:else>
    &nbsp;
    </mvt:if>
    </td>
    <td align="left" valign="top">
    <mvt:item name="fonts" param="body_font">
    Quantity in Basket:
    <mvt:if expr="l.settings:product:quantity EQ 0">
    <i>None</i>
    <mvt:else>
    <b>&mvt:product:quantity;</b>
    </mvt:if>
    <br>
    Code: <b>&mvt:product:code;</b><br>
    Price: <b><span id="price-value">&mvt:product:formatted_price;</span></b><br>
    <mvt:if expr="l.settings:product:weight NE 0">
    Shipping Weight: <b>&mvt:product:weight;</b> &mvt:store:wtunits;<br>
    </mvt:if>
    <span id="inventory-message">
    <mvt:if expr="l.settings:product:inv_active">
    &mvt:product:inv_long;
    </mvt:if>
    </span>
    </mvt:item>
    </td></tr>
    <tr>
    <td id="swatches" class="swatches">&nbsp;</td>
    </tr>
    <form method="post" action="&mvt:global:sessionurl;">
    <input type="hidden" name="Action" value="ADPR">
    <input type="hidden" name="Screen" value="PROD">
    <input type="hidden" name="Store_Code" value="&mvte:store:code;">
    <input type="hidden" name="Product_Code" value="&mvte:product:code;">
    <input type="hidden" name="Category_Code" value="&mvte:global:category_code;">
    <tr><td>&nbsp;</td></tr>
    <tr><td align="left" valign="top">
    <mvt:item name="product_attributes" param="product:id" />
    </td></tr>
    <tr><td align="left" valign="middle">
    <mvt:item name="fonts" param="body_font">
    Quantity:
    <input type="text" name="Quantity" value=1 size=4>
    <mvt:item name="buttons" param="AddToBasket" />
    </mvt:item>
    </td></tr>
    </form>
    <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
    <tr><td align="left" valign="middle" colspan="2">
    <mvt:item name="fonts" param="body_font">
    &mvt:product:descrip;
    </mvt:item>
    </td></tr>
    </table>
    _________________________________________

  3. #13
    Join Date
    Sep 2006
    Posts
    1,967

    Default Re: short links not working for category tree and products.

    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

  4. #14
    Join Date
    Apr 2007
    Location
    nj
    Posts
    67

    Default Re: short links not working for category tree and products.

    http://www.healingherbsofchina.com/product/3703.html

    Sorry, but I don't understand what you mean by showing this url.

  5. #15
    Join Date
    Sep 2006
    Posts
    1,967

    Default Re: short links not working for category tree and products.

    Your rewrites are setup so that category links use the identifier of /category. Product links use an identifier of /product. If the identifier is not in place, the urls will fire as page not found.
    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

  6. #16
    Join Date
    Nov 2006
    Location
    Groton Vermont
    Posts
    1,704

    Default Re: short links not working for category tree and products.

    Quote Originally Posted by herbchina View Post
    Mark,

    Here is the file for "Products Display Layout". What should be changed?? Thanks.

    ----------------------
    <table border="0" cellpadding="5" cellspacing="0">
    <tr><td align="left" valign="middle" colspan="2">
    <mvt:item name="fonts" param="hdr_font">
    <b>&mvt:product:name;</b>
    </mvt:item>
    </td></tr>
    <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
    <tr>
    <td align="center" valign="top" rowspan="4">
    <mvt:if expr="NOT ISNULL l.settings:product:image">
    <img src="&mvte:product:image;" alt="&mvte:product:name;">
    <mvt:else>
    &nbsp;
    </mvt:if>
    </td>
    <td align="left" valign="top">
    <mvt:item name="fonts" param="body_font">
    Quantity in Basket:
    <mvt:if expr="l.settings:product:quantity EQ 0">
    <i>None</i>
    <mvt:else>
    <b>&mvt:product:quantity;</b>
    </mvt:if>
    <br>
    Code: <b>&mvt:product:code;</b><br>
    Price: <b><span id="price-value">&mvt:product:formatted_price;</span></b><br>
    <mvt:if expr="l.settings:product:weight NE 0">
    Shipping Weight: <b>&mvt:product:weight;</b> &mvt:store:wtunits;<br>
    </mvt:if>
    <span id="inventory-message">
    <mvt:if expr="l.settings:product:inv_active">
    &mvt:product:inv_long;
    </mvt:if>
    </span>
    </mvt:item>
    </td></tr>
    <tr>
    <td id="swatches" class="swatches">&nbsp;</td>
    </tr>
    <form method="post" action="&mvt:global:sessionurl;">
    <input type="hidden" name="Action" value="ADPR">
    <input type="hidden" name="Screen" value="PROD">
    <input type="hidden" name="Store_Code" value="&mvte:store:code;">
    <input type="hidden" name="Product_Code" value="&mvte:product:code;">
    <input type="hidden" name="Category_Code" value="&mvte:global:category_code;">
    <tr><td>&nbsp;</td></tr>
    <tr><td align="left" valign="top">
    <mvt:item name="product_attributes" param="product:id" />
    </td></tr>
    <tr><td align="left" valign="middle">
    <mvt:item name="fonts" param="body_font">
    Quantity:
    <input type="text" name="Quantity" value=1 size=4>
    <mvt:item name="buttons" param="AddToBasket" />
    </mvt:item>
    </td></tr>
    </form>
    <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
    <tr><td align="left" valign="middle" colspan="2">
    <mvt:item name="fonts" param="body_font">
    &mvt:product:descrip;
    </mvt:item>
    </td></tr>
    </table>
    _________________________________________

    This was the wrong info. Edit the category page CTGY - -- On the page there is a "tab" that says "Category Product Display Layout"

    Find the link that looks something like this --- <a href="http://www.yourdomain.com/&mvt:product:code;.html">

    needs to be <a href="http://www.yourdomain.com/product/&mvt:product:code;.html">

  7. #17
    Join Date
    Apr 2007
    Location
    nj
    Posts
    67

    Default Re: short links not working for category tree and products.

    Not in place in what file?

  8. #18
    Join Date
    Nov 2006
    Location
    Groton Vermont
    Posts
    1,704

    Default Re: short links not working for category tree and products.

    Quote Originally Posted by herbchina View Post
    Not in place in what file?
    You no give correct info. Did you try and follow my directions to edit the correct page?

  9. #19
    Join Date
    Apr 2007
    Location
    nj
    Posts
    67

    Default Re: short links not working for category tree and products.

    Quote Originally Posted by Mark Hood View Post
    You no give correct info. Did you try and follow my directions to edit the correct page?
    ok now. I missed that ( 10 LASHES W/WET NOODLE. LOL. Everything works.

    THANK YOU.

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •