Search found 7 matches

Page 1 of 1

Search found 7 matches

Re: Special and discount

Great,
thanks a lot

Jump to post
  • Tue Feb 12, 2019 1:17 am
  • Replies 2
  • Views 266
Special and discount

Hello, when i have a product with special and discount i think there is an incoherence... The product page will display old price and new price and the different discount for different quantity. The cart when i have setted a special, the discount is discarded... I think the cart should consider the ...

Jump to post
  • Thu Feb 07, 2019 6:56 pm
  • Replies 2
  • Views 266
Re: bug in "Edit Order" when using required custom fields

You gave me this code replace with: } elseif (($custom_field['type'] == 'text') && !empty($custom_field['validation']) && filter_var($this->request->post['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/' . html_entity_decode($custom_f...

Jump to post
  • Sun Oct 07, 2018 5:02 am
  • Replies 16
  • Views 2648
Re: bug in "Edit Order" when using required custom fields

Thanks for the answer. My catalog/controller/api/customer.php is like your: <?php class ControllerApiCustomer extends Controller { public function index() { $this->load->language('api/customer'); // Delete past customer in case there is an error unset($this->session->data['customer']); $json = array...

Jump to post
  • Sun Oct 07, 2018 3:47 am
  • Replies 16
  • Views 2648
Re: bug in "Edit Order" when using required custom fields

i edited the file, now it is like https://github.com/opencart/opencart/bl ... stomer.php
but now i have problem:
the regex of custom field is /^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/i
when i press continue, i have error on filter_var

Jump to post
  • Sat Oct 06, 2018 1:35 am
  • Replies 16
  • Views 2648
Re: bug in "Edit Order" when using required custom fields

I retried and now it work, but there is a problem on the length of the regex like: /^(?:(?:[B-DF-HJ-NP-TV-Z]|[AEIOU])[AEIOU][AEIOUX]|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[1256LMRS][\dLMNP-V])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM])(?:[A-MZ][1-9MNP-V][\dLMNP-V]...

Jump to post
  • Wed Oct 03, 2018 4:22 pm
  • Replies 16
  • Views 2648
Re: bug in "Edit Order" when using required custom fields

Hi,
there is error when using custom errors with Regex like
/^[a-zA-Z]{6}[0-9]{2}[abcdehlmprstABCDEHLMPRST]{1}[0-9]{2}([a-zA-Z]{1}[0-9]{3})[a-zA-Z]{1}$/

the problem is on ^ character

Jump to post
  • Tue Oct 02, 2018 4:58 pm
  • Replies 16
  • Views 2648

Page 1 of 1

Search found 7 matches