eCommerce construction > How-to questions

Link Call to Order to specific URL - Not contact page

(1/2) > >>

I'm trying to figure out how to link the Call to Order icon on the Product listings page to a specific url NOT the contact page.

When you click on a category you are taken to a catalog list of items of items. Let's say one of the items is a Call to Order item (instead of a regular cart item).  I would like the "phone" icon to click to a specific URL outside of the website that host all services.

I have changed the icon in the /Storefront/view/default/template/pages/product/product_listing.tpl  to the calendar icon because I want the customer to be able to book reservations instead of calling.  In this file, the icon has the "#" hastag in the <a href>.  However, even when I change that hashtag to a specific URL, clicking on the icon in the catalog (Product listing page) still sends me to the contact page.

See attachment...

I was looking for the way to redirect the url in the System --> Localization --> Language Definitions. 

But so far, no luck. 

Any help would be greatly appreciated.

Thanks in advance.

You can find URL in public_html/storefront/controller/common/head.php line 87.
You can try edit it manually, but it will be overridden by upgrade process.
Right way to use hook (of your custom extension).
for example

--- Code: ---public function onControllerCommonHead_UpdateData() {
     $this->baseObject->view->assign( 'call_to_order_url', $this->baseObject->html->getURL('your/route') );
--- End code ---

Thank you so much abolabo.  For right now I will do the temporary fix. But I'm relatively new to AbanteCart and will have to research how to work with doing custom extensions in AbanteCart. Already it's Light Years better than Magento in my opinion.

Thanks again!

I've found the call to order words in head file, but how to edit and make the call to order button link to the url i want? I've tried to put the url in different places, but none worked.


Replace URL in this code

--- Code: ---$this->view->assign('call_to_order_url', 'myurl');
--- End code ---


[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Social Login Mod