Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2014
    Posts
    57
    Plugin Contributions
    0

    Default spped up the "write review" process for the buyer

    I made a test order in my site.
    I viewed my order history and move the mouse to the ordered product title , the title are text only.
    No link up to the product.So if I'm a buyer , It's hard for me to search the ordered product from the site again to write review.
    that make the buyer give up to write review.
    How to make the link into the ordered product title in the order history ??
    It's easy for buyer to view the order history and write review easily.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: spped up the "write review" process for the buyer

    You could customize the file:
    /includes/templates/template_default/templates/tpl_account_history_info_default.php

    using your templates and overrides, and copy that to:
    /includes/templates/your_template_dir/templates/tpl_account_history_info_default.php

    then change the code for:
    Code:
            <td class="accountProductDisplay"><?php echo  $order->products[$i]['name'];
    
        if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
    to read:
    Code:
    <?php
    // bof: add Product Link to Order History
    $products_link = '<a href="' . zen_href_link(zen_get_info_page($order->products[$i]['id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($order->products[$i]['id'])) . '&products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>';
    ?>
            <td class="accountProductDisplay"><?php echo $products_link;
    // eof: add Product Link to Order History
    
        if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
    Last edited by Ajeh; 7 Apr 2014 at 02:07 PM. Reason: fix filename
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2014
    Posts
    57
    Plugin Contributions
    0

    Default Re: spped up the "write review" process for the buyer

    Quote Originally Posted by Ajeh View Post
    You could customize the file:
    /includes/templates/template_default/templates/tpl_account_history_default.php

    using your templates and overrides, and copy that to:
    /includes/templates/your_template_dir/templates/tpl_account_history_default.php

    then change the code for:
    Code:
            <td class="accountProductDisplay"><?php echo  $order->products[$i]['name'];
    
        if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
    to read:
    Code:
    <?php
    // bof: add Product Link to Order History
    $products_link = '<a href="' . zen_href_link(zen_get_info_page($order->products[$i]['id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($order->products[$i]['id'])) . '&products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>';
    ?>
            <td class="accountProductDisplay"><?php echo $products_link;
    // eof: add Product Link to Order History
    
        if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
    I got it .
    The file should be tpl_account_history_info_default .
    but thanks anyway, I done it.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: spped up the "write review" process for the buyer

    Thanks for the catch on the typo ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2014
    Posts
    57
    Plugin Contributions
    0

    Default Re: spped up the "write review" process for the buyer

    Quote Originally Posted by Ajeh View Post
    Thanks for the catch on the typo ...
    Sorry to bother again.
    I just found that the order history only display a part of the title.not full product title.
    Maybe there's limit on the title text . How to make it display the full title ??

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: spped up the "write review" process for the buyer

    Check your database tables in phpMyAdmin ...

    What is the size of the field:
    products_name

    in the table:
    products_description

    What is the size of the field for:
    products_name

    in the table:
    orders_products
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: spped up the "write review" process for the buyer

    Another thing to consider ... make sure that you don't delete any of your products within your Zen Cart admin! If you do, then the link to the product's page won't be properly created.

  8. #8
    Join Date
    Feb 2014
    Posts
    57
    Plugin Contributions
    0

    Default Re: spped up the "write review" process for the buyer

    Quote Originally Posted by Ajeh View Post
    Check your database tables in phpMyAdmin ...

    What is the size of the field:
    products_name

    in the table:
    products_description

    What is the size of the field for:
    products_name

    in the table:
    orders_products
    thank you so much.
    I changed it now.

  9. #9
    Join Date
    Feb 2014
    Posts
    57
    Plugin Contributions
    0

    Default Re: spped up the "write review" process for the buyer

    Quote Originally Posted by lat9 View Post
    Another thing to consider ... make sure that you don't delete any of your products within your Zen Cart admin! If you do, then the link to the product's page won't be properly created.
    Noted.
    thank you

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: spped up the "write review" process for the buyer

    Thanks for the update that you were able to correct the field lengths to correct this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 12 Mar 2015, 03:13 PM
  2. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  3. Aligning the "write a review" button
    By mollycakes in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 26 Apr 2008, 11:48 PM
  4. "write a review" and "tell a friend" on the same side
    By aagraphics in forum General Questions
    Replies: 4
    Last Post: 3 Feb 2007, 09:35 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