Re: OpenCart 3.0.4.0 - PHP Notice: Undefined index: in catalog/controller/account/register.php
Those are caused by direct bot posts (not using you web form) without providing the fields with it. When checking those fields it gives a warning that they do not exist. So, check that first (using the empty function, !empty means not empty), for example for your contact controller: protected functi...
Jump to post- Bug Reports
- OpenCart 3.0.4.0 - PHP Notice: Undefined index: in catalog/controller/account/register.php
- Wed Oct 16, 2024 11:23 am
- Replies 1
- Views 49
Re: Auto assign product of one parent category to all subcategories
Don't know what you are selling but in this manner, either your parent category makes no sense or you sub categories make no sense.
Jump to post- Wed Oct 16, 2024 8:36 am
- Replies 8
- Views 806
Re: which file to select different special price for different customer groups?
Hello there, After a member logs in, how does Opencart select the correct product special price for each customer group? Function getProduct($product_id) in catalog\model\catalog\product.php is only select special price for customer_group_id = $this->config->get('config_customer_group_id')? V.3038 ...
Jump to post- Sun Oct 13, 2024 12:32 am
- Replies 4
- Views 188
Re: How do I access an array created by one controller in a second controller?
Using Opencart 3.0.3.3. How do I access data, created by one controller, in a second controller? For instance, one controller generates the following object and makes it available to the view. $data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['...
Jump to post- Tue Oct 08, 2024 12:44 am
- Replies 6
- Views 464
Re: Indexing OpenCart on Google
Hello, I have a website developed in OpenCart and the product fields are filled in correctly. However, when I search for the product, the information displayed below the product URL in the browser is the product description rather than the meta description. How can I resolve this? Google search rar...
Jump to post- Mon Oct 07, 2024 10:40 pm
- Replies 3
- Views 923
Re: Index problem, google bot only crawl my homepage
Hello; My opencart version: 3.0.4.0 and I use SEO URL's. My store was opened at 26 August 2024. I submitted my sitemap to google on the same day. Google accepted my .xml sitemap without error. My problem is Google only crawl my hompage and only indexed my homepage. I manually submitted a few URLs t...
Jump to post- Mon Oct 07, 2024 10:55 am
- Replies 4
- Views 276
Re: Anyway to trace down all the files an extension installed?
Haha if I had the file locally would be pretty easy wouldn't it But in all seriousness, the REMOVE button next to install history, how does it know what files to DELETE, when you click it? There has to be a list of files recorded somewhere so that the REMOVE button knows what it needs to delete . ....
Jump to post- Sat Oct 05, 2024 9:48 pm
- Replies 6
- Views 302
Re: Anyway to trace down all the files an extension installed?
Haha if I had the file locally would be pretty easy wouldn't it But in all seriousness, the REMOVE button next to install history, how does it know what files to DELETE, when you click it? There has to be a list of files recorded somewhere so that the REMOVE button knows what it needs to delete . ....
Jump to post- Sat Oct 05, 2024 2:30 am
- Replies 6
- Views 302
Re: Strange .htaccess behavior.
That is your complete htaccess?easypeasyac wrote: ↑Fri Oct 04, 2024 8:13 pmHello;
I checked and try to upload many times and upload it to root directory.
Did the original ever work?
filematch wise it looks ok, maybe it is in another part of htaccess or your server config? Jump to post
- Fri Oct 04, 2024 10:40 pm
- Replies 8
- Views 364
Re: Strange .htaccess behavior.
Double check what you uploaded and where. Jump to posteasypeasyac wrote: ↑Fri Oct 04, 2024 6:17 pmHello, yes it is just typo. I just corrected it.
Do you have any idea?
- Fri Oct 04, 2024 8:09 pm
- Replies 8
- Views 364
Re: [REFUSED] help with a url redirect issue (Journal Theme)
@JNeuhoff, ok, it looks like you were right about it being journal THIS TIME. I turned off the SEO and the problem is still there. I guess I have to figure out a different way to go about this. Thanks anyway. @nonnedelectari, what do you mean? I need to check if something is set, or I need to check...
Jump to post- Sun Sep 29, 2024 12:33 am
- Replies 5
- Views 406
Re: [REFUSED] help with a url redirect issue (Journal Theme)
@JNeuhoff, ok, it looks like you were right about it being journal THIS TIME. I turned off the SEO and the problem is still there. I guess I have to figure out a different way to go about this. Thanks anyway. @nonnedelectari, what do you mean? I need to check if something is set, or I need to check...
Jump to post- Sun Sep 29, 2024 12:19 am
- Replies 5
- Views 406
Re: help with a url redirect issue
First of all, this is an OpenCart forum, but you are using the Journal3 framework, in which case the Journal support would be more appropriate. In general, something like this should work for OpenCart: $host = $_SERVER['HTTP_HOST']; $protocol=$_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) &&am...
Jump to post- Sat Sep 28, 2024 8:52 pm
- Replies 5
- Views 406
Re: New Cart for every new login
Hi All, I'd like to change the way the cart works in opencart. Id like a new cart each time a customer logs in. So the same customer could log in from 2 devices at the same time and have a separate cart each. Is this something that is achievable or is the way the cart works to inbedded to be easily...
Jump to post- Thu Sep 26, 2024 10:41 pm
- Replies 4
- Views 305
Re: New Cart for every new login
Hi All, I'd like to change the way the cart works in opencart. Id like a new cart each time a customer logs in. So the same customer could log in from 2 devices at the same time and have a separate cart each. Is this something that is achievable or is the way the cart works to inbedded to be easily...
Jump to post- Thu Sep 26, 2024 9:27 pm
- Replies 4
- Views 305
Re: Moved Admin Dir - White Blank Page
New install and wanted to move my /admin folder. When visiting the /admin or now /adm1n link I'm met with a white blank page. The rest of the store is fine so I assume its my /config/config.php file being broken. Here it is: https://pastebin.com/Dt8kMp51 Anyone have some good advice for me? In seve...
Jump to post- Installation, Upgrade, & Config Support
- Moved Admin Dir - White Blank Page > Error: Call to undefined method ScssPhp\ScssPhp\Compiler::compileString()
- Thu Sep 26, 2024 6:32 pm
- Replies 6
- Views 659
Re: Load a specific language on the Invoice Template
Thank you both for the replies. As I understand there is no way to change it dynamically as @nonnedelectari mentioned. This has to be done through the creation of the order. So I guess I need to find a walk-around method for fixing this and being able to print a translated invoice. Maybe a replacem...
Jump to post- Fri Sep 20, 2024 11:12 pm
- Replies 9
- Views 771
Re: Load a specific language on the Invoice Template
Where this could be added? Before model getter functions. 3 it's your language_id. As stated, the order product name and model as well as the order totals titles are written into the respective tables in the language the order was placed in. They cannot be dynamically changed into a different langu...
Jump to post- Fri Sep 20, 2024 7:06 pm
- Replies 9
- Views 771
Re: Load a specific language on the Invoice Template
Hi! $language = new Language('de-de'); // language directory by default it's $this->config->get('language_directory') $this->registry->set('language', $language); $this->load->language('sale/order'); Hello Halfhope. This worked great! Thank you for it and the explanation also! By the way, is there ...
Jump to post- Thu Sep 19, 2024 6:37 pm
- Replies 9
- Views 771
Re: shipping estimator expanded by default
Change the class from "panel-collapse collapse" to "panel-collapse collapse in" of id "collapse-shipping" in the twig file of that component Jump to post
- Thu Sep 12, 2024 8:10 am
- Replies 11
- Views 2014