Search found 15 matches

Page 1 of 1

Search found 15 matches

Re: cart.remove Function

Am I missing something? Yep, items aren't removed from the cart by their Product ID, they are given a different "key" in the cart. If you look in your common.js file: view-source:https://progenix.co.za/catalog/view/javascript/menu3rdlevel/common.js Under the comment "// Cart add remo...

Jump to post
  • Mon Jan 08, 2024 8:16 pm
  • Replies 5
  • Views 2468
Re: cart.remove Function

straightlight wrote:
Sat Jan 06, 2024 11:34 pm
OC version. URL.
100%. OC 2.3.0.2, https://progenix.co.za

Jump to post
  • Sun Jan 07, 2024 1:02 am
  • Replies 5
  • Views 2468
cart.remove Function

Hello everyone, happy 2024! I have an issue with the function cart.remove. On a product page, I want a button to add or remove a related product (think of it as buying a burger and having chips as the related product), but without it being an option on the product - just an add/remove BUTTON for a r...

Jump to post
  • Sat Jan 06, 2024 11:12 pm
  • Replies 5
  • Views 2468
Re: Some Elements Take Long to Load

The support and knowledge around here is amazing. I recognize it as |OCT| Hide Price For Individual Product but didn't know what the file is doing. I disabled the add-on (it's not really needed anymore, it's only used when new products are coming out and the price is still under embargo which is SE...

Jump to post
  • Tue Sep 26, 2023 6:41 pm
  • Replies 10
  • Views 2908
Re: Some Elements Take Long to Load

The thing is nothing was changed on the site side between it loading in milliseconds and suddenly having this large delay. No new extensions or plugins have been installed for several weeks. The contents of the file you mentioned: .price, .col-sm-4 ul.list-unstyled{opacity:0;} That's it, nothing el...

Jump to post
  • Mon Sep 25, 2023 4:52 pm
  • Replies 10
  • Views 2908
Re: Some Elements Take Long to Load

Oh, I just found another website speed test which seems to give a better breakdown than those I'd been using. According to Uptrends' test running on a product page rather than the homepage, the big delays before the price/qty/etc show are all cart requests: https://i.imgur.com/m5vdbDU.png You can ig...

Jump to post
  • Sat Sep 23, 2023 4:53 pm
  • Replies 10
  • Views 2908
Re: Some Elements Take Long to Load

You have some extension that hides elements with catalog/view/javascript/hideprcprd/def/common.css and unhides them later. Try to work out which extension in is the disable it to see if anything improves. The thing is nothing was changed on the site side between it loading in milliseconds and sudde...

Jump to post
  • Sat Sep 23, 2023 4:28 pm
  • Replies 10
  • Views 2908
[SOLVED] Some Elements Take Long to Load

Recently (3 days ago), and without any changes I'm aware of, some elements on our site have started taking a while to load, namely Cart (remains grey and says "Loading") Brand Product Code Availability Price I've used Chrome's Performance recorder to view what's happening but can't make he...

Jump to post
  • Fri Sep 22, 2023 7:41 pm
  • Replies 10
  • Views 2908
Re: Out of Stock Items Last

ADD Creative wrote:
Thu Jul 27, 2023 4:23 pm
As a workaround you could try changing the part of the modification you posted to the following.
You, sir, are a scholar and a gentleman. Thank you so, so much!

Jump to post
  • Thu Jul 27, 2023 11:15 pm
  • Replies 6
  • Views 862
Re: Out of Stock Items Last

Make sure you have the correct file. There should be three occurrences in catalog/model/catalog/product.php. I think your issue is that another extension is adding more and the modification will be adding code before all those lines as well. You could check by looking in system/storage/modification...

Jump to post
  • Thu Jul 27, 2023 4:14 pm
  • Replies 6
  • Views 862
Re: Out of Stock Items Last

You're tracking a single line of: $query = $this->db->query($sql); whereas this model contains multiple lines of these lines. You must ensure that the field prefix still applies to the product table based on the line position you chose in order to pull the quantity field in this case. Also, see tha...

Jump to post
  • Thu Jul 27, 2023 2:01 am
  • Replies 6
  • Views 862
[SOLVED] Out of Stock Items Last

Hi guys, I'm having a problem with getting out of stock products to show last. The (free) ocmod plugin I'm using to display out of stock products last contains the following: <file path="catalog/model/catalog/product.php"> <operation> <search> <![CDATA[$query = $this->db->query($sql);]]> <...

Jump to post
  • Wed Jul 26, 2023 12:27 pm
  • Replies 6
  • Views 862
Re: More than one theme possible?

Simply use some css. Creating a second theme I would say is really not requried. Read this for example: https://web.dev/patterns/theming/theme-switch/ Or: https://dcodemania.com/post/switch-dark-light-mode-css-javascript Or: https://www.w3schools.com/howto/howto_js_toggle_dark_mode.asp This suddenl...

Jump to post
  • Mon Jan 30, 2023 5:58 pm
  • Replies 5
  • Views 1511
Re: More than one theme possible?

Not per default. But you could add a button in the shop to offer visitors the possibility to change. That's quite alright with me, but how would it be implemented? Let's keep things simple and assume it's nothing more than a hyperlink, turning it into a toggle is something I can do myself but I don...

Jump to post
  • Fri Jan 27, 2023 10:18 pm
  • Replies 5
  • Views 1511
More than one theme possible?

It's time to hop into the 2020s and offer a dark mode for my customers, but without losing light mode as not everyone likes dark mode. I'm capable of creating a dark mode copy of the default theme (at the moment I'm using a lightly modified version of the default theme), but from what I can see a th...

Jump to post
  • Fri Jan 27, 2023 1:32 pm
  • Replies 5
  • Views 1511

Page 1 of 1

Search found 15 matches