Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    help question Re: Sale Confirmation Email With Add Review Link?

    hi linda, it really woks perfectly, i wonder if i could get this :
    if the customer hasn't written a review on the product, display "write a review button A" with the link.
    if the customer has already written a review on the product, display "write a review button B" and disable the link on the button.
    any ideas?

  2. #12
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Sale Confirmation Email With Add Review Link?

    ps: i mean if customer has written one review by clicking this button next to this product

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

    Default Re: Sale Confirmation Email With Add Review Link?

    You could build into the template an IF to check if the customer has written a review on the product and change the button based on the results ...

    The reviews table contains a field for both:
    products_id
    customers_id

    that can be used for this test ...
    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!]
    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!

  4. #14

    Default Re: Sale Confirmation Email With Add Review Link?

    thanks guys i havent visited this forum in a while, however i will try some of these tips in the new year... I am finding that people are not adding a review to the site but we do receive lots of feedback by general email.

  5. #15
    Join Date
    Feb 2011
    Posts
    16
    Plugin Contributions
    0

    help question Re: Sale Confirmation Email With Add Review Link!

    Quote Originally Posted by Ajeh View Post
    You can customize your templates and overrides any way you want ...

    You would want to add something like:
    Code:
    <?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array()) . '&products_id=' . $order->products[$i]['id']) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?>
    Hello Ajeh,
    I'm trying this piece of code on the accounts page (tpl_account_default.php) added to my overide template. This page shows the orders placed by a customer and seems the ideal place for this button.

    The review button link displays but it does not retrieve the product id correctly and I get "Sorry, the product was not found."

    I have a limited understanding of php so I'm unable to properly decipher the code to see what is going wrong.

    Pretty Please can you or anybody help...

    Gangees

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

    Default Re: Sale Confirmation Email With Add Review Link?

    The code needs a products_id and the tpl_account_default does not have any products_id ...

    What exactly are you trying to do ... do you want this link on an Order that the customer has made when viewing the account_history_info on each of the 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!]
    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. #17
    Join Date
    Feb 2011
    Posts
    16
    Plugin Contributions
    0

    Default Re: Sale Confirmation Email With Add Review Link?

    Quote Originally Posted by Ajeh View Post
    ... do you want this link on an Order that the customer has made when viewing the account_history_info on each of the Products?
    Hi Ajeh,
    This is not quite what I am after if I understand you correctly, I don't want the link on the account_history_info pages for the products, rather I want it to appear on the account page, where a customer's previous orders are listed.

    I have created a new "Review" heading which I have added after the "View" heading (so it looks like this: "Date"..."No"..."Ship To"..."Status"..."Total"..."View"..."Reviews"), and the "write review" button itself appears under this heading. Everything is in place visually, just stuck on functionality..

    Ideally, I would also like to make it so that if a review has already been written, the "write review" button could change to "read review", and link to the relevant review.

    Thanks,
    Gangees

  8. #18
    Join Date
    Feb 2011
    Posts
    16
    Plugin Contributions
    0

    Default Re: Sale Confirmation Email With Add Review Link?

    Oh dear now I see what I am trying to do is wrong, I'm asking for a review of an order, not a product, Doh!

    Okay, a rethink is needed..

  9. #19
    Join Date
    Feb 2011
    Posts
    16
    Plugin Contributions
    0

    Default Re: Sale Confirmation Email With Add Review Link?

    Quote Originally Posted by Ajeh View Post
    What exactly are you trying to do ... do you want this link on an Order that the customer has made when viewing the account_history_info on each of the Products?
    Hi Ajeh,
    Sorry for previous confusion and wasting your time, the new and improved short answer to your earlier question quoted above is yes, that is exactly what I want to do

    I have now placed the link on my tpl_account_history_info_default.php override page. This page lists the "Order Information - Order #NUMBER" and shows the product name. I have place the "write review" button in line with the product, but still have no functionality, I don't know how to get the product id..

    Thanks for any more help,
    Gangees

  10. #20
    Join Date
    Feb 2011
    Posts
    16
    Plugin Contributions
    0

    Default Re: Sale Confirmation Email With Add Review Link?

    Quote Originally Posted by Ajeh View Post
    What exactly are you trying to do ... do you want this link on an Order that the customer has made when viewing the account_history_info on each of the Products?
    Hi Ajeh,

    Please ignore my previous post, sorry for the confusion and wasting your time, the new and improved short answer to your earlier question quoted above is yes, that is exactly what I want to do

    I realised my error and it now works, hooray!

    Quote Originally Posted by Ajeh View Post
    You could build into the template an IF to check if the customer has written a review on the product and change the button based on the results ...

    The reviews table contains a field for both:
    products_id
    customers_id

    that can be used for this test ...
    Very interested in this, I would like to add an IF argument also based on whether the account holder has already written a review. If they haven't then display the button, if they have then don't display the button. I understand the theory but haven't a clue how to actually do this though.

    Any more help much appreciated,

    Gangees

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 Add Download link to confirmation email.
    By nigelt74 in forum Basic Configuration
    Replies: 4
    Last Post: 25 Jan 2014, 02:29 PM
  2. v139h How do I add a link to confirmation email?
    By Chargin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Nov 2012, 02:37 PM
  3. Can I add a Link to product URL in confirmation email?
    By RoPey in forum General Questions
    Replies: 0
    Last Post: 4 Dec 2007, 12:57 PM
  4. Order confirmation email with link to info page
    By bradymc in forum General Questions
    Replies: 19
    Last Post: 4 Mar 2007, 03:09 PM

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