Search found 99 matches

Search found 99 matches

Re: ocmod regex not working

Isn't that dangerous? This assumes Microsoft style line ending, as used on Windows, whereas OpenCart is usually hosted on Linux servers which uses \n only for line endings. [\n\r] assumes \n or \r If I really will need to find line ending, I will use (\r\n|\n|\r), which should include any possible ...

Jump to post
  • Mon Dec 23, 2019 2:10 am
  • Replies 7
  • Views 297
Re: ocmod regex not working

I found the cure!!! $ as search for end of line seems not working. Instead [\n\r] can be used. so the working code is <file path="catalog/view/theme/default/template/common/cart.twig"> <operation error="log" info=""> <search regex="true"><![CDATA[~({% for option in product\.option %})(.*[\r\n])~]]><...

Jump to post
  • Sat Dec 21, 2019 11:00 pm
  • Replies 7
  • Views 297
Re: ocmod regex not working

backslash escapes the dot. I have tried also without it - still the same. It must be something else, as i tried also just text in regex, like ~for option in product.option~ , it did not help Attaching the ocmod file, that seems perfectly valid, but is not working. What i need to achieve is insert so...

Jump to post
  • Sat Dec 21, 2019 8:26 pm
  • Replies 7
  • Views 297
ocmod regex not working

Ocmod itself works. But my regex search is reported as not found. Modification not created. What am I missing? Opencart 3.0.3.2. <file path="catalog/view/theme/*/template/common/cart.twig"> <operation error="log" info=""> <search regex="true"><![CDATA[~{% for option in product\.option %}(.*)$~]]></s...

Jump to post
  • Sat Dec 21, 2019 7:06 pm
  • Replies 7
  • Views 297
Re: Image Manager - remember last folder?

I have been looking at all Image managers just because of this feature, but they do not support Journal 3, therefore would be great to have this feature in the default image manager

Jump to post
  • Thu Nov 14, 2019 8:47 pm
  • Replies 3
  • Views 855
Re: Free download feature

I guess i found the answer. It is just that link is generated and i have to put it in product description manually. Good idea for the extension - free downloads tab if there is free download available.
Image

Jump to post
  • Fri Oct 13, 2017 5:52 pm
  • Replies 1
  • Views 264
Free download feature

There is radio button Free download when i add the download to the catalog. I made one free, but do not see how it affects frontend. There is no free donwload tab or anything where i can download the file. Anyone knows how is it supposed to work? http://pix.toile-libre.org/upload/original/1507887525...

Jump to post
  • Fri Oct 13, 2017 5:41 pm
  • Replies 1
  • Views 264
Re: OCMOD and VQMOD file Locations

I am running OC 3.0.1.2 and the system/storage/modification is empty despite the fact that at least one modification is installed and running. Is it just me or something is changed with oc 3.x? I found the reason - i forgot that after installing Opencart the system/storage directory was moved outsi...

Jump to post
  • Sat Oct 07, 2017 2:57 pm
  • Replies 18
  • Views 22314
Re: OCMOD and VQMOD file Locations

I am running OC 3.0.1.2 and the system/storage/modification is empty despite the fact that at least one modification is installed and running. Is it just me or something is changed with oc 3.x?

Jump to post
  • Fri Oct 06, 2017 11:42 am
  • Replies 18
  • Views 22314
Re: Can't make event work oc 2.3.0.2

I found what is wrong. Acording to this issue - if i am triggering frontend, then the action should also be on the frontend. That way creating file catalog/controller/extension/myext/cart.php with the following code <?php class ControllerExtensionMyextCart extends Controller { public function before...

Jump to post
  • Fri Sep 15, 2017 7:41 pm
  • Replies 3
  • Views 416
Re: Can't make event work oc 2.3.0.2

Hi, You must add some arguments to your action function, try this: public function beforeCartView($route = false, &$data = false){ $data['heading_title'] = 'New Heading Title'; } This will change the heading title. This is good point, but after adding paramenters i still do not get any result, it i...

Jump to post
  • Thu Sep 14, 2017 8:12 pm
  • Replies 3
  • Views 416
Can't make event work oc 2.3.0.2

I'm stuck at this. Can't make event work. It installs ok, but does nothing. It should trigger on cart page load, shouldn't it? file: admin/controller/extension/myext/cart.php <?php class ControllerExtensionMyextCart extends Controller { public function install() { $this->load->model('extension/event...

Jump to post
  • Thu Sep 14, 2017 1:32 am
  • Replies 3
  • Views 416
Re: SEO Friendly URL's on information pages

here is extension for 2.3 (tested on 2.3.0.2)

Jump to post
  • Mon Aug 28, 2017 8:36 pm
  • Replies 31
  • Views 32644
Re: Triggering Event Opencart 2.3.0.2

Thanks a lot Dave, this worked!

Jump to post
  • Thu Jul 20, 2017 1:47 am
  • Replies 3
  • Views 1253
Re: Triggering Event Opencart 2.3.0.2

Just tested with trigger

Code: Select all

$trigger = "admin/controller/catalog/product/edit/before";
and it worked. But i want to have view admin/view/template/catalog/product_form as trigger

Jump to post
  • Wed Jul 19, 2017 11:26 pm
  • Replies 3
  • Views 1253
Triggering Event Opencart 2.3.0.2

Trying out the event system for the first time. Something is not working for me. The code below. I want to trigger the public function test($input) on product edit. Event installs and uninstalls just fine, but the trigger admin/view/template/catalog/product_form/before does not fire the function tes...

Jump to post
  • Wed Jul 19, 2017 11:12 pm
  • Replies 3
  • Views 1253
Re: Edit orders extremely slow

i got the same problem on 2.0.1.1. It is both - on order view and order edit.

@hat opencart version do you have? Have you solved this problem by any chance?

Jump to post
  • Thu Jul 30, 2015 6:06 pm
  • Replies 1
  • Views 348
#How to create SEO URL to additional store in multi-store in

#How to create SEO URL to additional store in multi-store installation? I have multi-store installation and would like to cross-link products between stores. For example Product X on Store A Should link to the same Product X on Store B. Normally the urls are created with $this->url->link(); For exam...

Jump to post
  • Wed Jul 29, 2015 7:10 pm
  • Replies 0
  • Views 388
Re: Store Manager for OpenCart

is it running on Windows? what are technical requirements?

Jump to post
  • Tue Jul 21, 2015 3:27 pm
  • Replies 3
  • Views 2004

Search found 99 matches