Search found 28 matches

Search found 28 matches

JD2

Re: Error when new users log in

Thanks, that solved the problem. This post can be deleted (can't do I myself) to avoid redundancy.

Jump to post
  • Tue Jul 28, 2020 7:32 pm
  • Replies 3
  • Views 150

JD2

Re: Error when new users log in

I think this has something to do with customer shipping_addresses. I get this error when I try to create a new address for a customer via the site: SyntaxError: JSON Parse error: Unrecognized token '<' OK <b>Notice</b>: Trying to access array offset on value of type bool in <b>/home/opencart/htdocs/...

Jump to post
  • Tue Jul 28, 2020 5:07 pm
  • Replies 3
  • Views 150

JD2

[SOLVED] Error when new users log in

Hi! When a new user signs up for an account, they get this error in the top of their screens: Notice: Trying to access array offset on value of type bool in /home/opencart/htdocs/www.myshop.online/catalog/controller/startup/startup.php on line 166Notice: Trying to access array offset on value of typ...

Jump to post
  • Tue Jul 28, 2020 4:13 pm
  • Replies 3
  • Views 150

JD2

Re: Adding volume discount to search-view

Hi! Thanks for the code, I think this will solve the problem. I added all the code, but I'm not sure I added $prod_discount = array(); foreach ($discounts as $discount) { $prod_discount[] = array( 'quantity' => $discount['quantity'], 'price' => $this->currency->format($this->tax->calculate($discount...

Jump to post
  • Mon Jul 20, 2020 3:06 pm
  • Replies 7
  • Views 385

JD2

Re: Show {{ org_price }} in category and search caption

Thanks for the input! I think this was built in by the company that provided us with the Opencart installation and connection to our ERP-sytem.
I formatted the org_price as a currency in the controllers, and it now works flawlessly on both the search, category, special and latest overviews.

Jump to post
  • Thu Jul 16, 2020 8:16 pm
  • Replies 5
  • Views 193

JD2

Re: Show {{ org_price }} in category and search caption

Hi! It works perfectly on my product page :D I would love to also add it to the category and search if that's possible. Could you maybe help me with the code anyway so I can try?

Jump to post
  • Thu Jul 16, 2020 7:09 pm
  • Replies 5
  • Views 193

JD2

[SOLVED] Show {{ org_price }} in category and search caption

Hi! I'd like to show {{ org_price }} in the category and search captions. What would I need to add to the controllers to get this to work?
Using OC 3.0.3.2

Jump to post
  • Thu Jul 16, 2020 6:56 pm
  • Replies 5
  • Views 193

JD2

Re: Display price ignoring all discounts

I found it: I need to use {{ org_price }} on the product page and it shows the price before discounts.

Jump to post
  • Thu Jul 16, 2020 6:16 pm
  • Replies 1
  • Views 116

JD2

[SOLVED] Display price ignoring all discounts

Hi! I would like to display the price of a product on my site, but without applying all discounts. I just want this http://oc100423.dgebv.nl/image/catalog/Screenshot%202020-07-16%20at%2010.53.46.png number to show up. I would like this to be an addition to the price of a product with all the discoun...

Jump to post
  • Thu Jul 16, 2020 4:57 pm
  • Replies 1
  • Views 116

JD2

Re: Replace model for JAN in Wishlist and cart

Hi! That worked, thanks! I had double check because I could add it on different places in the file, but it works now.

Jump to post
  • Thu Jul 16, 2020 2:07 pm
  • Replies 7
  • Views 292

JD2

Re: Replace model for JAN in Wishlist and cart

Hi! That worked for the wishlist, but not for the cart. This is how it looks in cart.php (both in common/ and checkout/): $data['products'][] = array( 'cart_id' => $product['cart_id'], 'thumb' => $image, 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'recurring' ...

Jump to post
  • Wed Jul 15, 2020 9:23 pm
  • Replies 7
  • Views 292

JD2

Re: Replace model for JAN in Wishlist and cart

Hi! I'd like to change replace this 'Model' with 'JAN':
Image
I'd like to do this both on the cart and the wishlist page.

Jump to post
  • Wed Jul 15, 2020 6:05 pm
  • Replies 7
  • Views 292

JD2

[SOLVED] Replace model for JAN in Wishlist and cart

Hi! On the cart and wishlist pages I'd like to change model with JAN. How would I go about doing that? I already tried adding 'jan' => $result['jan'] under $data['products'][] = array( in the wishlist.php controller, but that didn't work. I think I need to add something else ;-) Could someone help m...

Jump to post
  • Wed Jul 15, 2020 5:43 pm
  • Replies 7
  • Views 292

JD2

Re: {% if logged %} doesn't work on cart

Hi! That worked perfectly, thanks! I now understand it ;-)

Jump to post
  • Tue Jul 14, 2020 6:53 pm
  • Replies 2
  • Views 123

JD2

[SOLVED] {% if logged %} doesn't work on cart

Hi! Today I created this simple edit in checkout/cart.twig: <div class="buttons clearfix"> <div class="pull-left"><a href="{{ continue }}" class="btn btn-default">{{ button_shopping }}</a></div> {% if logged %} <div class="pull-right"><a href="{{ checkout }}" class="btn btn-primary">{{ button_checko...

Jump to post
  • Tue Jul 14, 2020 6:19 pm
  • Replies 2
  • Views 123

JD2

Adding volume discount to search-view

Hi! I'd like to add volume discounts to my search-view. I already added <div class="list-unstyled"> {% if discounts %} <li> <hr> </li> {% for discount in discounts %} <li>Vanaf {{ discount.quantity }} <b> {{ discount.price }} </b></li> {% endfor %} {% endif %} </div> to product / search.twig under t...

Jump to post
  • Tue Jul 07, 2020 6:04 pm
  • Replies 7
  • Views 385

JD2

Re: Twig-file for new product feed

Yes, that's what I meant! Thanks!

Jump to post
  • Mon Jul 06, 2020 3:37 pm
  • Replies 3
  • Views 155

JD2

[SOLVED] Twig-file for new product feed

Hi! I've got a simple question: What twig file do I need to edit to make changes to the new product feed/module? I can't seem to figure it out...

Jump to post
  • Mon Jul 06, 2020 2:26 pm
  • Replies 3
  • Views 155

JD2

Changes in .twig-files reset every time

Hi! Yesterday I made some changes to some .twig-files. When I wanted to work on them again today, all the changes were gone in the editor but still visible on the site. I made a small change to the reset .twig-file and now all other changes are gone. This isn't a big problem because I know what chan...

Jump to post
  • Wed Jul 01, 2020 3:57 pm
  • Replies 2
  • Views 180

Search found 28 matches