Change "Link to product" in EMails

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
10 years 11 months ago #134813

-- url of the page with the problem -- : www.waffenmarti.ch/shop
-- HikaShop version -- : HikaShop [1308241414] /
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : 31.0.1650.57 (Official Build 235101)
-- Error-message(debug-mod must be tuned on) -- : None

Hello there

I have a problem if a customer sends a question about a product. If a customer uses the button to ask a question about a product, then there is a "Link to product" that leads to the backend to the problem.

So my customer, the owner of Waffenmarti has a big problem with that. In his point-of-view, that is to complicated since he have to login to the backend, and that is already to much. Don't ask why, I discussed that hours of hours and I can't see and end.

He would like that this "Link to product" leads to the Front-End and not to the backend. Would this be possible and where do I have to change that. I guess it's possible somewhere in the source-code of the EMails, but I don't know how to create a link that leads to the frontend instead to the backend.

Thank you and best regards
Frustrated Mike

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #134991

Hi,

No problem, we have a solution for that ;)

You have to edit the " A contact request has been made " email via the menu System > Email, then replace the tag:

{VAR:PRODUCT_DETAILS}
By:
{VAR:FRONT_PRODUCT_DETAILS}

ps: it require HikaShop 2.2.2

Last edit: 10 years 11 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
10 years 5 months ago #154573

Hello there

After a while I managed to update the Shop to 2.3.0 (latest version) and i try out to replace the backend-link with the front-end link.

The EMail-Request creates a link like: www.waffenmarti.ch/shop/product&task=show&cid []=216&Itemid=372 (NOT to admin backend - that is perfect and what i want), BUT: it do not work!

Since i activated this... how it's called... SEF or something like that the link should be:
www.waffenmarti.ch/shop/diverse-gewehre/...62-mm-x-51-nato.html

in that case and the Link that VAR:FRONT_PRODUCT_DETAILS creates is " www.waffenmarti.ch/shop/product&task=show&cid []=216&Itemid=372" and this produces a 404 :(

May I kindly ask you for help :)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #154723

Hi,

What can be done is set a canonical url (full path) to your products via the product edition page.
This will improve the SEO and we will use it in the email "contact_request.preload.php" file via the menu System > Emails.

In this email, replace the code:

$front_product_url = hikashop_frontendLink('product&task=show&cid[]='.$data->product->product_id.$url_itemid);
By:
$front_product_url = $data->product->product_canonical;

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
10 years 5 months ago #154846

Hello Xavier

This solution with the canonical URL would be nice and would work for me.

I think it makes sense to use our product code that is build like this "art0000482" as cannonical url.

I read the help about the canonical help, but I'm not sure how I must specify it. Is it correct if I put for example the product code like above in it?

Canonical URL: art0000482

Would this work? Or what do I have to specifiy into this canonical URL?

I also tried to write " www.waffenmarti.ch/shop/art0000482 " or " www.waffenmarti.ch/shop/art0000482.html " to this canonical url field, but with the links above a cannot open the product :(

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #154858

Hi,

The url set for the canonical url field must be a valid one. You have to use an url from an existing menu.
For example if you reach a page from a menu and the url is: www.waffenmarti.ch/shop/pistolen/desert-...2-usa-fertigung.html , so youhave to use that url for the canonical field.

In your case you have to set the full path to work for your issue.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum