Search found 9 matches

Page 1 of 1

Search found 9 matches

Re: Change "Buy" button to "View product" and redirect to product details

Hey, glad you resolved it =D

Sorry don't check in to the forums that often.

Looks awesome!

Jump to post
  • Mon Mar 25, 2019 10:31 pm
  • Replies 12
  • Views 800
Re: Change "Buy" button to "View product" and redirect to product details

For the behavior of bringing the user to the products page you will want to change the following: onclick="cart.add('{{ product.product_id }}', '{{ product.minimum }}');" to onclick="window.location = '{{ product.href }}';" For the text that displays you want to change: <span class="hidden-xs hidden...

Jump to post
  • Thu Mar 21, 2019 6:20 pm
  • Replies 12
  • Views 800
Re: How to display related search terms on a search page result?

Keeping reply here, but feel free to email me if you would like further clarification with screenshots =) Basically, you would perform your PHP logic in the opencart/upload/catalog/controller/product/search.php file in this case (although a mod is a better option than adjusting the core, but google ...

Jump to post
  • Thu Mar 21, 2019 6:09 pm
  • Replies 21
  • Views 1068
Re: Change "Buy" button to "View product" and redirect to product details

You are correct =) You will want to replace it with something like: <a href="{{ product.href }}">{{ text_view_product }}</a> (View product text needs to be added to the language files, and loaded in the controller if it is not already) But with some appropriate styling to your theme. Alternatively i...

Jump to post
  • Mon Mar 18, 2019 6:50 pm
  • Replies 12
  • Views 800
Re: Customer Group ID comes back as 0

Your code is correct, so likely you are just going insane =(

More seriously, there is nothing notably wrong with your logic, double check that the controller is the actual controller being used, and that $data is being passed to the view?

Jump to post
  • Sat Mar 16, 2019 1:37 am
  • Replies 3
  • Views 259
Re: Change order form columns.

The order emails are generated via template files located at view/theme/<your theme>/template/mail/order.tpl

You can edit the content of this file to add / remove any data you require, such as quantity or price (search the file to locate)

Jump to post
  • Sat Mar 16, 2019 1:29 am
  • Replies 2
  • Views 105
Re: How to display related search terms on a search page result?

You could use one of, or a combination of these functions to look for similar terms, although these are better for individual words than for complete text: http://php.net/manual/en/function.levenshtein.php http://php.net/manual/en/function.similar-text.php They allow comparison of words / strings wi...

Jump to post
  • Sat Mar 16, 2019 1:22 am
  • Replies 21
  • Views 1068
Re: Change "Buy" button to "View product" and redirect to product details

Quite possible.

You would need to edit the different product template files, these are located in

view/theme/YOURTHEME/template/product/* (whichever files are applicable)

Replace the button with its add to cart JS with a standard <a href> to the details page.

Jump to post
  • Sat Mar 16, 2019 1:09 am
  • Replies 12
  • Views 800
Re: Error when adding to cart

Adjust your .htaccess to redirect www.zoom-c.com to zoom-c.com, so no user lands on the www page and your issue would be resolved.

Jump to post
  • Sat Mar 16, 2019 12:51 am
  • Replies 12
  • Views 551

Page 1 of 1

Search found 9 matches