Search found 653 matches

Search found 653 matches

Re: Limit number of related products?

Hi As mentioned in the previous post, you can add a limit to getProductsRelated function in this file: catalog\model\catalog\product.php Find: $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_related pr LEFT JOIN " . DB_PREFIX . "product p ON (pr.related_id = p.product_id) LEFT JOIN...

Jump to post
  • Thu Mar 05, 2020 12:01 am
  • Replies 5
  • Views 197
Re: Cant Find Code for list box of manufacturers in the admin panel of the product list tab

Hi
What change do you want to make?
The list shown in the screenshot is created here:
File:

Code: Select all

admin\controller\catalog\manufacturer.php
See:

Code: Select all

public function autocomplete() {

Jump to post
  • Tue Mar 03, 2020 3:51 pm
  • Replies 1
  • Views 117
Re: White space above and below catalog product images?

the dimensions that you set, is not correct. Compare below images: https://theplanter.nl/image/catalog/products/snoeischaar/116773_A_8719202839357_C22952140.jpg https://theplanter.nl/image/cache/catalog/products/snoeischaar/116773_A_8719202839357_C22952140-200x200.jpg You should adjust the dimension...

Jump to post
  • Thu Feb 20, 2020 3:58 am
  • Replies 8
  • Views 177
Re: Options Report

Hi
I have an extension that shows out of stock options in admin panel:
https://www.opencart.com/index.php?rout ... n_id=33168

Jump to post
  • Wed Feb 19, 2020 5:00 pm
  • Replies 3
  • Views 212
Re: Search not taking value

Hi
Do you use a custom theme?
Have you modified any file?
If your site is online, Please add a link to your post.

There is no such issue in the header search, try here:
https://demo.opencart.com/

Jump to post
  • Fri Feb 14, 2020 3:13 am
  • Replies 11
  • Views 498
Re: Where can I donate?

Hi I see you wrote "to the OpenCart community", But there is a comment in the template footer file that may help: OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation. Please donate via PayPal to...

Jump to post
  • Wed Feb 12, 2020 10:57 pm
  • Replies 3
  • Views 220
Re: Can we delete duplicate events?

Hi
Can't say from your screenshot that they are duplicates.
You can click on the Event Information button (with the i icon) to see the trigger and action for each of them.

Jump to post
  • Mon Feb 10, 2020 12:55 pm
  • Replies 3
  • Views 295
Re: Why do I need customer password to update it's info into admin panel?

Hi
Yes, it is the browser autofill. Clear both password fields and you should be able to save the form.

Jump to post
  • Sat Feb 08, 2020 2:59 am
  • Replies 3
  • Views 274
Re: Add to cart from form button

Hi
It's not clear to me, do you want to do that in product page? Then you can use the product options.
Or you want to do it from an information page?

Jump to post
  • Thu Jan 30, 2020 8:37 pm
  • Replies 5
  • Views 244
Re: How to Increase Product Image Size in Grid View

Hi The product box in the grid view has some col class like this: <div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12"> You can remove those classes from the twig file, like this: <div class="product-layout product-grid"> Or you can add this CSS code: .product-grid { width: ...

Jump to post
  • Wed Jan 29, 2020 1:20 am
  • Replies 7
  • Views 268
Re: How to Increase Product Image Size in Grid View

why image in list view is larger but not in grid view
Because their parent box has different size.

Code: Select all

If I have to change your mentioned css rule, then where this rule is located and what and how to change it?
Changing that CSS rule is not the solution.

What do you want to achieve?

Jump to post
  • Tue Jan 28, 2020 6:44 pm
  • Replies 7
  • Views 268
Re: How to Increase Product Image Size in Grid View

Hi
Actually both grid and list view use the same image. In your link the image size is 2000x2000 but due to the CSS rule that I mentioned in my first post, The image cannot exceed the size of its wrapper box.

Jump to post
  • Tue Jan 28, 2020 6:23 pm
  • Replies 7
  • Views 268
Re: How to Increase Product Image Size in Grid View

Hi You can control the image size in product list page (category, search, etc.) with this option: Product Image List Size (W x H) In the settings page that you mentioned. But please note that there is this CSS property (from bootstrap) that does not allow the images to be larger than the product box...

Jump to post
  • Tue Jan 28, 2020 4:59 pm
  • Replies 7
  • Views 268
Re: Redirect a search word directly to a product? maybe via htaccess?

paulfeakins wrote:
Mon Jan 27, 2020 6:33 pm
Why would you hardcode it rather than make it dynamic?

And why would you edit core files rather than add this to .htaccess?

Pretty poor code above, I don't suggest anyone does that.
Hi
Yes, But I only showed the way.
I was not going to explain writing a dynamic extension.

Jump to post
  • Mon Jan 27, 2020 6:40 pm
  • Replies 10
  • Views 623
Re: Redirect a search word directly to a product? maybe via htaccess?

Hi

Edit this file:

Code: Select all

catalog\controller\product\search.php
Find:

Code: Select all

if (isset($this->request->get['tag'])) {
Add before it:

Code: Select all

if ($search == 'blue ball') {
	$this->response->redirect($this->url->link('product/product', 'product_id=42'));
}
42 is an example of product ID.

Jump to post
  • Sat Jan 25, 2020 9:02 pm
  • Replies 10
  • Views 623

Search found 653 matches