Search found 60 matches

Search found 60 matches

Re: PHP Warning: http_build_query()

Hello Fido-x Thanks for the clue. I understand what you mean. I re-wrote the $results array in footer.php like this: $this->data['products'] = array(); foreach ($this->model_catalog_product->getProducts() as $result) { $this->data['products'][] = array( 'product_id' => $result['product_id'], 'sku' =...

Jump to post
  • Tue Jan 20, 2015 4:30 pm
  • Replies 2
  • Views 1312
[Solved] PHP Warning: http_build_query()

Hello All have started in the product page where the description have not been loaded anymore; I 've got the product name (which is from the same mysql table 'product_description') but not the product description; the table is encoded in utf8_bin. I have activated from the admin settings to display ...

Jump to post
  • Tue Jan 20, 2015 2:45 pm
  • Replies 2
  • Views 1312
(Solved) How is the public function hasStock constructed ?

Hello, I am talking about the code inside system/library/cart.php: public function hasStock() { $stock = true; foreach ($this->getProducts() as $product) { if (!$product['stock']) { $stock = false; } } return $stock; } With the help of this function you can then call anywhere the quote "$this->cart-...

Jump to post
  • Fri Nov 01, 2013 4:57 pm
  • Replies 1
  • Views 770
Re: Deleted Product gives duplicate meta in G Webmaster

So the problem was not with the specific deleted product. The problem was with any random string which you could add to the end of the categories url. And the cause was in the (controller) seo_url.php file. I have found the solution HERE for anybody who might be interested. Practically you add anoth...

Jump to post
  • Sun Jul 14, 2013 11:19 pm
  • Replies 1
  • Views 268
(Solved) Deleted Product gives duplicate meta in G Webmaster

Hello, I have recently noticed, searching for some duplicate metas behind G Webmaster, that one product which I have deleted some time ago, it is the subject of a duplicate meta. It is a very strange situation. Let me shortly explain it. Maybe somebody has already encountered this issue. If you are ...

Jump to post
  • Sun Jul 14, 2013 1:53 am
  • Replies 1
  • Views 268
Re: Notification Bar Link Problem

There is no sense to modify the controller json line for that. Look carefully in the language file at catalog/language/yourlanguage/checkout/cart.php. You would see that the variable text_success is defined by a sentence which has in its body three instances of the sprintf, that would be the "%s" sy...

Jump to post
  • Mon May 13, 2013 9:55 pm
  • Replies 5
  • Views 787
(How to) Display manufacturer logo on manufacturer page

Hello, This is tested on OC 1.5.3.1 I've been struggling a few hours wondering why my manufacturer logo, which I've been able to load in the admin, does not show in the front manufacturer page. While I was looking for a solution on OC forum, I have found strange and difficult codes. As always I have...

Jump to post
  • Wed May 08, 2013 11:43 pm
  • Replies 0
  • Views 563
Pagination is correct, but the products are not splitted

Hello, I am in some custom code on category page, i.e. I display on a certain category some products (due to some filters). I am almost done, but there is something strange happening: If I render for example 13 products on the page and I have a limit of 4 per page (already set in admin), the paginat...

Jump to post
  • Wed Apr 24, 2013 9:02 pm
  • Replies 0
  • Views 493
How to not display all the products in category page

Hello, I have to make a little trick and not display all the products in the category page. For example I have 20 products in one category (which is the parent category and have no children). But, when I call the category page in the front store I want to display only a few products (based on some v...

Jump to post
  • Mon Apr 22, 2013 7:25 pm
  • Replies 3
  • Views 755
Re: Add Product Fields

As labeshops said there are fields that you could convert them to any need, like sku and model fields, and more of these since OC 1.5.4 there are plenty new fields in product form and in case you wouldn't cover all of them already, just change them the description in the language file (both admin an...

Jump to post
  • Thu Apr 04, 2013 1:25 pm
  • Replies 10
  • Views 4872
Re: Colorbox not working -

It's a little trick to make colorbox work on the category and search page. Here it is .. I believe you want to insert the following javascript taken from product page: <script type="text/javascript"><!-- $('.colorbox').colorbox({ overlayClose: true, opacity: 0.5 }); //--></script> Be aware that the ...

Jump to post
  • Wed Apr 03, 2013 11:39 pm
  • Replies 1
  • Views 1282
Custom captcha and session_start() issue

Hello I have a custom captcha in Opencart. The front form checks and validates the captcha image into a separate php file. Here is the validation php file: <?php session_start(); $randomnr = rand(1000000, 9999999); $_SESSION['randomnr2'] = md5($randomnr); $im = imagecreatetruecolor(186, 38); $brown ...

Jump to post
  • Fri Mar 01, 2013 2:33 am
  • Replies 0
  • Views 218
Re: Can't create/write to file '/tmp

I am also bothered by this stupid error "Notice: Error: Can't create/write to file '/tmp". I am not trying to take part on any of you guys and regarding php.ini this has no relevancy in solving this error. I have several developed shops built all on Opencart some are big traffic sites some are low. ...

Jump to post
  • Mon Feb 18, 2013 4:10 pm
  • Replies 13
  • Views 3390
Re: Enhanced Order Email 1.5

Yes, It works but then the email title is: SHOP NAME - Order XX (Array) How do I remove that (Array) in the email tittle since it does not make any sense? ;) I am having this same problem, the HTML email confirmation is working great apart from the fact that '(Array)' is being added to the end of t...

Jump to post
  • Mon Jan 28, 2013 11:03 pm
  • Replies 38
  • Views 62881
Re: (Solved) How to rename multiple options in product page

I've got it. In admin panel, under Catalog, there is another Option menu, where you can define and name as many options as like. So simple.

Jump to post
  • Fri Jan 11, 2013 5:51 pm
  • Replies 1
  • Views 373
(Solved) How to rename multiple options in product page

Hello I am stuck in something that in the first place would have a simple solution but I cannot find it even if I have solved harder problems in the past. Maybe somebody out here has a more clear mind on this issue. In admin panel, product edit, under options, I select two extra fields, namely "Chec...

Jump to post
  • Fri Jan 11, 2013 4:47 pm
  • Replies 1
  • Views 373
Re: User registered two accounts with same email

Are any of the letters capitalized in one of the addresses but not the other? For some reason I'm thinking that they are viewed as different addresses. No, they are exactly the same. I know what you mean as it happened in the past to have two emails with different capitalization but now unfortunate...

Jump to post
  • Fri Jan 11, 2013 6:03 am
  • Replies 2
  • Views 157
User registered two accounts with same email

Hello everybody Recently I've come up with a big surprise when one user have registered two accounts using the exact same email. I have triple checked myself and the OC don't allow me to use same email for multiple accounts and it does notify me when I try to register with same email. My very questi...

Jump to post
  • Thu Jan 10, 2013 3:25 pm
  • Replies 2
  • Views 157
Custom captcha php code / not validating /session conflict ?

Hello I have a custom captcha php code which is not validating on server side. But I don't quite know if this is related with Opencart structure or not. Anyway the same code works fine on another Joomla website. So here it is: The Form code: <form method="POST" action="action.php"> <input name="capt...

Jump to post
  • Thu Nov 22, 2012 3:35 am
  • Replies 0
  • Views 715
How to enhance Low Order Fee extension

Hello As I have noticed the extension called Low Order Fee has only one instance, and it can be set only globally through the entire shop. I have situations when I want to set different Low Order Fees for some products (when they are checked-out). I wonder if anybody has managed to enhance this exte...

Jump to post
  • Mon Oct 22, 2012 9:07 pm
  • Replies 0
  • Views 90

Search found 60 matches