Search found 18 matches

Page 1 of 1

Search found 18 matches

Re: Weight based shipping, each for different method

Thanks for the vote of confidence. ;D nbrofree, for the weight-based shipping, you could do that using the built-in Weight Based Shipping extension. Just create 2 geo zones for the same area, and then enter your rates for each one. You'd have to enter all the brackets, though, since it doesn't supp...

Jump to post
  • Wed Dec 28, 2022 11:35 pm
  • Replies 7
  • Views 501
Re: Weight based shipping, each for different method

I would be glad to hear about plugins, options, etc. Clear Thinking has some fantastic shipping extensions: https://www.opencart.com/index.php?route=marketplace/extension&filter_member=clear%20thinking I will probably get that, as I was already thinking about that one but wanted some feedback. ...

Jump to post
  • Wed Dec 28, 2022 11:18 pm
  • Replies 7
  • Views 501
Re: Weight based shipping, each for different method

IP_CAM wrote:
Wed Dec 14, 2022 2:43 am
Opencart Version ? Theme used ? Extensions installed ? 8)
OC 3.0.3.3, default and default

Jump to post
  • Wed Dec 28, 2022 11:17 pm
  • Replies 7
  • Views 501
Weight based shipping, each for different method

Hi all, I am looking for a way to create 2 shipping methods. Each method must have a different weight based cost and different COD cost. example: Shipping company "A" 1-4 KG: 2$ for every extra KG: 2$ COD cost:2 Shipping company "B" 1-3 KG: 4$ for every extra KG: 1$ COD cost: 1$ ...

Jump to post
  • Wed Dec 14, 2022 1:39 am
  • Replies 7
  • Views 501
Re: Modified insert query on addOrder() not updating a column

You shouldn't be modifying core files directly. So I would suggest you use an OCMOD or vQmod instead once you've got your change working. I know and I did make a vQmod but it did not work, so I made a backup and modified the core file directly for sanity's shake. In both cases I saw the vQcache fil...

Jump to post
  • Mon Jun 14, 2021 9:36 pm
  • Replies 11
  • Views 828
Re: Modified insert query on addOrder() not updating a column

By creating an Event, this can be accomplished already. See documentation: https://github.com/opencart/opencart/wiki/Events-System An event action will trigger before or after the function addOrder(). I want it during/in the function. Should I be doing it with the event for any reason? Moreover thi...

Jump to post
  • Sun Jun 13, 2021 11:26 pm
  • Replies 11
  • Views 828
Modified insert query on addOrder() not updating a column

I want an extra field in the order_product table on OC 2.3.0.2 so: in the file "catalog/model/checkout/order.php" I changed the insert query of "function addOrder($data)" to (added , test_column='foo'): INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" ....

Jump to post
  • Sun Jun 13, 2021 4:34 am
  • Replies 11
  • Views 828
Re: "order_id" not set on Paypal success page

For 2.3.02 it would be here that needs changing to the following. Yes I have 2.3.0.2 and that is exactly what I changed. Also check you are not using a poor theme that has it's own version of that file. Use you web browser inspect tool at the last stage of checkout to see that the value is correct....

Jump to post
  • Tue Jun 08, 2021 2:13 am
  • Replies 5
  • Views 486
Re: "order_id" not set on Paypal success page

Thank you for your reply, but unfortunately that did not help much. It is a twig file which is probably for Opencart 3. However I found the difference in an input value and tried it, but still no order_id.

Jump to post
  • Mon Jun 07, 2021 7:56 pm
  • Replies 5
  • Views 486
"order_id" not set on Paypal success page

On the page order success page "catalog/controller/checkout/success.php", there is a check to get the order_id: if (isset($this->session->data['order_id'])) { However when the customer pays with Paypal standard, the order_id is not set, so I can not get other information like "$this->...

Jump to post
  • Sun Jun 06, 2021 9:17 pm
  • Replies 5
  • Views 486
Re: 'Sanitize' postcode on addorder

Yeap, I will do that in time, if noone has some idea that could help or point me to the right direction.

Again, sincerely thanx for the help.

Jump to post
  • Wed Apr 07, 2021 3:30 am
  • Replies 10
  • Views 608
Re: 'Sanitize' postcode on addorder

However, what you also mentioned is that the solution you first provided does not provide the result you expected and which is why you are requesting for custom codes assistance on the forum. Yes sir, I agree that I am the one needing help here, never claimed otherwise and did not claim that I had ...

Jump to post
  • Wed Apr 07, 2021 1:03 am
  • Replies 10
  • Views 608
Re: 'Sanitize' postcode on addorder

While Journal is not supported on the forum, the preg_replace line is where it's wrong. See this e.g instead with str_replace: https://thisinterestsme.com/php-remove-whitespaces/ . In addition, you are only removing empty spaces on the payment_postcode. Also ensure the shipping_postcode also remove...

Jump to post
  • Tue Apr 06, 2021 9:20 pm
  • Replies 10
  • Views 608
'Sanitize' postcode on addorder

Some customers add whitespaces on checkout postcode field. I try to remove those spaces and also do a check for letters. (OC2.3.0.2 & journal2) Example: if postcode is '12 3 t45 ' make it '12345'. Simple mod I tried: <file path="catalog/model/checkout/order.php"> <operation error="...

Jump to post
  • Tue Apr 06, 2021 7:47 pm
  • Replies 10
  • Views 608
Re: Filter data query not accepting filter_category_id

Hi The special page uses the `getProductSpecials` method not `getProducts`. By default `getProducts` accepts `filter_category_id` but `getProductSpecials` does not accept it. Take a look at this file: catalog\model\catalog\product.php So, just to check if I am correct... I have to get the function ...

Jump to post
  • Fri Mar 05, 2021 9:20 am
  • Replies 4
  • Views 457
Re: Filter data query not accepting filter_category_id

paulfeakins wrote:
Thu Mar 04, 2021 7:07 pm
Looks like you're along the right lines ...
I feel a bit more comfortable hearing this... but still... I cant get this to work :/

Jump to post
  • Fri Mar 05, 2021 9:04 am
  • Replies 4
  • Views 457
Filter data query not accepting filter_category_id

I want the product/special page to have a category filter via url. Ex: index.php?route=product/special&cid=1234 So, I try to edit the file 'catalog / controller / product / special.php' on the filter_data array to be like: //todo other checks here $cid= (int)$this->request->get['cid']; $filter_d...

Jump to post
  • Thu Mar 04, 2021 12:41 am
  • Replies 4
  • Views 457

Page 1 of 1

Search found 18 matches