Search found 102 matches

Search found 102 matches

Re: How to include one tpl file to another?

Well I will try both your recommendations and we'll see the results! Thank you for your responses!

Jump to post
  • Sun Aug 23, 2020 8:26 pm
  • Replies 3
  • Views 1555
How to include one tpl file to another?

Hey guys, i was wondering if it's possible (and how) to include a .tpl file in another. For example, I want to create an extension that uses a single layout html code that just changes position in e.g. product.tpl file (like above price, below image, below action buttons etc. but keeps the same layo...

Jump to post
  • Thu Aug 20, 2020 9:31 pm
  • Replies 3
  • Views 1555
Leverage browser caching does not work.

Hello, i have an OC ver.: 2.0.3.2 installation with journal2 template on and the leverage browser caching doesn't seem to work. Here's my .htaccess file: # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # F...

Jump to post
  • Tue Jun 16, 2020 6:24 pm
  • Replies 2
  • Views 429
Re: Add exta field in cart and minicart

While the OC version has not been posted, you'd need to add your customer_discount field in your system/library/cart/cart.php file in the getProducts() method. Then, from your catalog/controller/checkout/cart.php file and catalog/controller/common/cart.php file, you could re-pull the field and outp...

Jump to post
  • Tue Feb 18, 2020 7:08 pm
  • Replies 2
  • Views 865
Re: Add images to attributes

Well,
I finally developed an extension of my own so here's the link in case someone needs this:

https://www.opencart.com/index.php?rout ... n_id=37507

Jump to post
  • Tue Feb 18, 2020 1:06 am
  • Replies 2
  • Views 1832
Add extra field in cart and minicart

Hey,
what i want to achieve is that i want to add an extra field in the totals page.

For example, i have added an extra field in each customer in database called "Customer_discount" and i want to show it in the minicart and cart page.

Any ideas on how to achieve this?

Thanks.

Jump to post
  • Tue Feb 18, 2020 1:02 am
  • Replies 2
  • Views 865
Re: Creating new database column

As for the one you say about creating a new table i find it a bit useless for this particular function, since it will be an "on - off" switch for showing a particular field of the product. That has a good reason! In the case you (or somebody else) create a new extension and want to publis...

Jump to post
  • Tue Aug 06, 2019 1:48 am
  • Replies 9
  • Views 4442
Re: (Solved) PHP Notice: getimagesize - error

Even though it's an old topic i want to verify that this works (the corrupted file thing). I got this in my log files: PHP Notice: getimagesize(): Read error! in /xxx/xxx/xxxxxx/xxxx/httpdocs/system/storage/modification/catalog/model/tool/image.php on line 14 And by checking for corrupted files (zer...

Jump to post
  • Tue Aug 06, 2019 1:45 am
  • Replies 5
  • Views 5913
Re: Creating new database column

Partly correct. Partly correct and "touching the database is not possible" are two different things, which was the point. It doesn't really matter, if you use a controller to create a table or XML file to add a corresponding function to another controller. One way or another you have to e...

Jump to post
  • Thu Aug 01, 2019 9:11 pm
  • Replies 9
  • Views 4442
Re: Creating new database column

I'm just starting to develop some simple opencart extensions with the use of vqmod and i'd like to ask where should i place the sql alteration code of the db in order to add a new column in the db.. 1. forget VQMod, use OCMod 2. simply add the code for the database inside the main controller of the...

Jump to post
  • Thu Aug 01, 2019 9:10 pm
  • Replies 9
  • Views 4442
[SOLVED] Creating new database column

Hello,
I'm just starting to develop some simple opencart extensions with the use of vqmod and i'd like to ask where should i place the sql alteration code of the db in order to add a new column in the db..

Thanks

Jump to post
  • Thu Aug 01, 2019 5:47 am
  • Replies 9
  • Views 4442
Add images to attributes

Hello,
I'd like to know if it's possible to add image (or icons) to specific attributes in opencart.
There are some products (like tyres) which have some specific icons for some specific attributes (see the attachment).

Is this possible to be made?

Thanks.

Jump to post
  • Mon Dec 17, 2018 12:09 am
  • Replies 2
  • Views 1832
Re: Problem with installing custom JS code in Journal2 template.

thekrotek wrote:
Sun May 06, 2018 9:47 pm
You have a JS error, debug it to see the message.
I don't get any JS errors. it's like it does not executed..

Jump to post
  • Tue May 08, 2018 10:23 pm
  • Replies 4
  • Views 921
Re: Problem with installing custom JS code in Journal2 template.

kestas wrote:
Sun May 06, 2018 8:23 pm
If I correctly remember you should place code without <script> tags...
I've placed it without <script> tags and still the form is not executed.

Jump to post
  • Tue May 08, 2018 10:18 pm
  • Replies 4
  • Views 921
Re: Showing some product attributes in products category page.

The problem with this is that i can't show only selected attributes! It shows every attribute under each product!

Jump to post
  • Sun May 06, 2018 6:23 pm
  • Replies 3
  • Views 1780
Problem with installing custom JS code in Journal2 template.

Hello, I've created a filter form for opencart with simple JS coding. After inserting the js code in "Custom code" section of the template, i can't get it submitted. In fact it does not work at all. Does anyone have any suggestions? Thank you in advance! EDIT: I finally found the solution!...

Jump to post
  • Sun May 06, 2018 6:09 pm
  • Replies 4
  • Views 921
Showing some product attributes in products category page.

Is it possible to show some of my products attributes in category page?

Something like size, or color etc..

Thank you.

Jump to post
  • Thu May 03, 2018 7:47 am
  • Replies 3
  • Views 1780
Re: [v3.x - concept] - Custom fields with API and emails

What i get is "Fatal error: Uncaught Exception: Error: Could not load session adaptor session! etc.. etc.. " When trying to access order details.
Plus that the order does not appear in dashboard.

Jump to post
  • Sat Apr 21, 2018 10:40 pm
  • Replies 10
  • Views 9276
Re: Minimum product quantity restriction in cart for specific products or product categories

Yes but besides the individual min product quantity, i want the min order quantity in cart to be in a specific number before the customer proceeds to checkout. e.g.: I want to have a limit of 10 products in cart before proceeding to checkout: 2 red t-shirts + 3 blue + 5 orange = 10 products in cart ...

Jump to post
  • Thu Apr 19, 2018 12:52 am
  • Replies 5
  • Views 2344
Minimum product quantity restriction in cart for specific products or product categories

Hello,
Is there any extension where i can insert minimum quantity in cart, for selected categories or products, in order for checkout to continue??

Thank you.

Jump to post
  • Thu Apr 19, 2018 12:28 am
  • Replies 5
  • Views 2344

Search found 102 matches