Search found 1636 matches

Search found 1636 matches

Re: net price + vat: opencart sums up to wrong order total

Language -> Your_Language folder -> your_language.php:

Code: Select all

$_['decimal_point']                 = '.';
$_['thousand_point']                = ','; 
You are used to use ',' as decimalpoint in valuta, e.g. 16,31 ??

Jump to post
  • Wed Dec 02, 2020 2:09 am
  • Replies 5
  • Views 149
Re: How to hide just one other shipping method if free shipping is activated?

Code: Select all

		if ($this->config->get('free_status') && $this->cart->getSubTotal() >= $this->config->get('free_total')) {
			$status = false;
		}
Add this code in your shipping model before:

Code: Select all

$method_data = array();

Jump to post
  • Thu Nov 19, 2020 5:41 pm
  • Replies 4
  • Views 189
Re: And/Or Statement For Order Status

"order_status" => "16" Is that part of code to fill array ? Like: $statuses[] = array( "label" => "My label 16", "order_status" => "16" ); Is there an if / elseif part ? Like: if ($order_status_id == 16) then { $statuses[] = array( "label" => "My label 16", "order_status" => "16" ); } I would like ...

Jump to post
  • Wed Oct 21, 2020 7:04 pm
  • Replies 7
  • Views 605
Re: PHP mysqli connect_error() Function ERROR SHOW PASSWORD AND USERNAME

@ IP_CAM Ernie, just edit config.php and change user, password or server and view result. Then change code in system/library/db/mysqli.php public function __construct($hostname, $username, $password, $database, $port = '3306') { try { mysqli_report(MYSQLI_REPORT_STRICT); $this->connection = @new \my...

Jump to post
  • Tue Oct 13, 2020 3:06 pm
  • Replies 15
  • Views 2920
Re: Afbeeldingen in de Image Manager vergroten in OC 3+

Afbeeldingen worden in de image manager verkleind tot 100 x 100 px.
Zoek in admin/controller/common/filemanager.php naar:

Code: Select all

'thumb' => $this->model_tool_image->resize(utf8_substr($image, utf8_strlen(DIR_IMAGE)), 100, 100),
Pas 100, 100 aan naar wens.

Jump to post
  • Sat Oct 03, 2020 6:51 pm
  • Replies 5
  • Views 572
Re: Sticky menu on top

Try attached modification. - Tested on OC2302 and OC 3032 - adds style and script to all theme folders present, all header.* files - Install using Extension - Installer - Extension - Modifications : Refresh Style: <style> /* Sticky Nav */ #menu.sticky { position: fixed; left: 35px; right: 35px; top:...

Jump to post
  • Sat Oct 03, 2020 6:13 pm
  • Replies 8
  • Views 983
Re: Change add to cart to stock availability

See demo . Also see category 'Presents' ... If product['quantity'] < 1 it shows image in corner with stock status text. Also checks in cart Add if product quantity > 0. If not in stock, add to cart button in modules redirect to product page. There Add to cart button displays stock status text and is...

Jump to post
  • Thu Sep 10, 2020 12:47 am
  • Replies 7
  • Views 285
Re: Tekst plaatsen onder bestelknop OC3 standaard template

Ik heb ook wel een module speciaal gemaakt voor dit doel.
Kijk eens op de demo oc2302 of demo OC3032.
Bekijk een categorie én een product ... Plaatsbaar op elke gewenste layout en positie én d.m.v. modificatie ook onder de bestelknop op de product pagina.

Ik heb het voor OC2302 en OC3032 ...

Jump to post
  • Tue Aug 11, 2020 4:25 pm
  • Replies 4
  • Views 572
Re: How to change Recurring profile Display

sw!tch wrote:
Tue Aug 11, 2020 6:03 am
Maybe try..

Code: Select all

 #product input[name="recurring_id"]:checked
Line 598:

Code: Select all

input[name=\'recurring_id\']
Line 622

Code: Select all

#product input[name="recurring_id"]
Both add:

Code: Select all

:checked

Jump to post
  • Tue Aug 11, 2020 3:07 pm
  • Replies 19
  • Views 912
Re: How to change Recurring profile Display on product page

That's a beautifull example ! I could not do it better.

Jump to post
  • Wed Aug 05, 2020 5:00 pm
  • Replies 19
  • Views 912
Re: How to change Recurring profile Display on product page

Why by PM ? what do you mean by create the loop ??? i want to make it like checkbox as was in screenshot Better read my post again: use the loop to create new selectable options ... {% for recurring in recurrings %} YOUR_CODE_HERE {% endfor %} And better not to use checkbox. Multiple options can be ...

Jump to post
  • Wed Aug 05, 2020 4:22 pm
  • Replies 19
  • Views 912
Re: How to change Recurring profile Display

Find: <select name="recurring_id" class="form-control"> <option value="">{{ text_select }}</option> {% for recurring in recurrings %} <option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option> {% endfor %} </select> Remove the select field and use the loop to create new selectable op...

Jump to post
  • Wed Aug 05, 2020 2:50 pm
  • Replies 19
  • Views 912
Re: Need help with updating tpl to twig

<div class="form-group"> <label class="col-sm-3 control-label" for="input-use-default"><span data-toggle="tooltip" title="{{ help_use_default }}">{{ entry_use_default }} ({{ default_currency }})</span></label> <div class="col-sm-9"> <select name="braintree_tlt_use_default" id="input-use-defaul...

Jump to post
  • Sun Aug 02, 2020 1:19 pm
  • Replies 13
  • Views 1443
Re: Hide shipping method price if it is equal to 0

Install using Extensions - Installer
Refresh Extensions - Modifications

When helpful: show appriciation

Jump to post
  • Wed Jul 29, 2020 2:10 pm
  • Replies 7
  • Views 396
Re: Changing Email Recipients based on selected form value

Edit attached ocmod.xml and add / edit the subjects and recievers.
Then copy file to /system/ and Refresh Extensions - Modifications.
Or: rename file to install.xml, zip into install.ocmod.zip and install using Extension - Installer

When helpful: show appriciation

Jump to post
  • Wed Jun 24, 2020 3:36 pm
  • Replies 2
  • Views 181
Re: Technical Issue with product option price

Change option type to select or radio. In that case customer can only select one color and add it to basket. Adding other color creates new product in cart ...

Jump to post
  • Sat Jun 20, 2020 6:19 pm
  • Replies 3
  • Views 192
Re: Order update emails to admin - Time for me to be obtuse

Order update email is not send to admin.
Take a look at catalog/model/checkout/order.php starting at line 761 ...

If you add:

Code: Select all

				$mail->setTo($this->config->get('config_email'));
				$mail->send();
After the last $mail->send(); at line 804, then the update email is send to admin.

Jump to post
  • Mon Jun 08, 2020 2:47 pm
  • Replies 4
  • Views 1507
Re: Change notify customer checkbox

$(document).delegate('#input-order-status', 'change', function() { var selectedStatus = $(this).children("option:selected").val(); var notifyOn = ['1','4','8','12']; if (notifyOn.includes(selectedStatus)) { console.log('Selected trigger on: ' + selectedStatus); $('#input-notify').prop('checked',tru...

Jump to post
  • Fri Jun 05, 2020 3:11 am
  • Replies 4
  • Views 171
Re: Verbergen subcategorien op categorie pagina

Aanpassing in de controller. Voor 2.* versies in common/header.php, voor 3.* versies in common/menu.php : <operation error="skip"> <search><![CDATA[$children = $this->model_catalog_category->getCategories($category['category_id']);]]></search> <add position="replace"><![CDATA[$children = array();]]>...

Jump to post
  • Thu Jun 04, 2020 2:43 pm
  • Replies 2
  • Views 1017

Search found 1636 matches