Search found 1349 matches

Search found 1349 matches

Re: Oc 2.3.0.2 causing max questions database error when adding products to cart

Anything in the log that stands out? You got 50k entries? You can PM me the file if not too large:)
And don't forget to disable the logging!!!

Jump to post
  • Mon Jul 31, 2017 5:46 pm
  • Replies 34
  • Views 4511
Re: Showing Products in Main Menu

I assume you mean to add the product array to the category array in the controller. That way products are grouped under the correct category id and available as $category['products'] $data['categories'][] = array( ...snip 'products'=>$cat_products,//the array of products for each category ); <ul cla...

Jump to post
  • Mon Jul 31, 2017 4:03 pm
  • Replies 17
  • Views 2343
Re: Oc 2.3.0.2 causing max questions database error when adding products to cart

I got curious and added a logger. Counted about 100 queries for adding a single product ;D See screenshot for adding to mysqli.php in system>library>db //$log = new \Log('db'.date('Y-m-d').'.log'); //$log->write($sql); Remove/add the // to enable/disable. It will create a log file for each day so yo...

Jump to post
  • Mon Jul 31, 2017 2:17 pm
  • Replies 34
  • Views 4511
Re: Oc 2.3.0.2 causing max questions database error when adding products to cart

Maybe you can ask your host the log file for this user so you can see which calls are made in abundance. Or add a logger to the mysqli.php if they won't do it. An extension might exist for such even. Otherwise no one could know the cause. Maybe a ddos even (a bot perhaps or more malicous). 50k quest...

Jump to post
  • Mon Jul 31, 2017 4:26 am
  • Replies 34
  • Views 4511
Re: Product Descriptions / Add'l Tab Description - How to add same content for every product?

Easiest way is to add a new tab hardcoded In template>product>product.tpl/twig add <li><a href="#tab-shipping" data-toggle="tab">Shipping Info</a></li> to the list and in the tab-content add the text: <div class="tab-pane" id="tab-shipping">...your text...</div> It should be easy to spot. Don't forg...

Jump to post
  • Sat Jul 29, 2017 10:14 pm
  • Replies 1
  • Views 439
Re: Limited option editing

It's likely the php setting max-input-vars. You can try and change it in php.ini or .user.ini or .htaccess depending on your webhost
More info:
http://php.net/manual/en/info.configura ... input-vars

Jump to post
  • Fri Jul 28, 2017 2:11 am
  • Replies 1
  • Views 306
Re: Focus during checkout.

Thanks, and glad you got it to work,
cheers

Jump to post
  • Wed Jul 26, 2017 12:28 am
  • Replies 6
  • Views 542
Re: Upgrade from 2.2 to remove SSL issues

Can you post your htaccess?
Or use a clean one from oc and add my suggestion above.

Jump to post
  • Mon Jul 24, 2017 11:33 pm
  • Replies 9
  • Views 893
Re: Upgrade from 2.2 to remove SSL issues

Try this, it redirects both non-www and non-ssl RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteRule ^(.*) https://domain.com%{REQUEST_URI} [R=301,L,NE] This is above other rules. And if you have issues editing order statuses, check admin>sale>controller>or...

Jump to post
  • Mon Jul 24, 2017 9:42 pm
  • Replies 9
  • Views 893
Re: Focus during checkout.

Just in case, here's the snippet. Add it to common.js without script tags, or to template>checkout>checkout.tpl <script> $('#accordion').on('shown.bs.collapse', function () { var offset = $(this).find('.panel-collapse.in').offset(), panel = $('.panel-collapse.in'); if (offset) { $('html,body').anima...

Jump to post
  • Mon Jul 24, 2017 7:50 pm
  • Replies 6
  • Views 542
Re: Developer question

I would create a table for each mod when needed.
One table to support all your extensions would be hard to maintain and possibly have a lot of overhead for unused columns.

Jump to post
  • Mon Jul 24, 2017 4:26 am
  • Replies 8
  • Views 957
Re: Developer question

You have to create a new table and then use JOIN on an existing one from oc

Jump to post
  • Mon Jul 24, 2017 2:23 am
  • Replies 8
  • Views 957
Re: Focus during checkout.

I remember doing this and found a demo here: https://demo.ilithemes.com/oc2102
Do a checkout and see if this is what you meant. (Theme is default with custom CSS so ignore that)

It's just a bit of javascript so you can grab it from the site if you're handy :)

Jump to post
  • Mon Jul 24, 2017 2:15 am
  • Replies 6
  • Views 542
Re: 2016 - Why are there so many Terrible themes?!

I agree, if your goal is to create a theme for general use, you shouldn't touch any tpl and just css it as much as you can to keep compatibility with extensions.

Jump to post
  • Sun Jul 23, 2017 12:38 am
  • Replies 134
  • Views 85769
Re: Fatal error: Allowed memory size!!!

Try to lessen the dimensions and or bitdepth. The size is not only affecting the amount of memory needed to process the image.

Jump to post
  • Sat Jul 22, 2017 5:09 am
  • Replies 8
  • Views 1748
Re: Custom Mail With SSL

It looks like you are using 2.0.x? the template is just the route without .tpl in 2.2+ I believe. And I see you're referencing a validate method while having validation in the POST condition, also on Linux routes are case sensitive. Did you debug the incoming data from the POST array? You're probabl...

Jump to post
  • Thu Jul 20, 2017 4:46 am
  • Replies 3
  • Views 415
Re: Group Downloads (listing) by ID

Here you go. Not extensively tested as I don't have too many orders with downloads on my demo. Let me know if all works out. Group Downloads Displays a table for all downloads attached to the product(s) in an order. Change product_id to order_id to group on orders. Find below line in the ocmod.xml t...

Jump to post
  • Mon Jul 17, 2017 5:26 pm
  • Replies 10
  • Views 1298
Re: Error update 3.0 -> 3.0.1.2

Had the same thing this morning on localhost. I just reran the updater and it went on to success but after that I had to fix both configs with missing 'define's like DIR_LOGS and a few more. Also encountered a permissions issue so I left it at that, no time to play with beta ;D

Jump to post
  • Mon Jul 17, 2017 4:54 am
  • Replies 1
  • Views 357
Re: Group Downloads (listing) by ID

Yes no problem, I'll create a little ocmod tomorrow

Jump to post
  • Mon Jul 17, 2017 4:49 am
  • Replies 10
  • Views 1298
Re: Group Downloads (listing) by ID

I understand the need, I happen to be an ebook creator as well.
What's your oc version and what do you want to group on? product or order?

Jump to post
  • Sun Jul 16, 2017 3:16 pm
  • Replies 10
  • Views 1298

Search found 1349 matches