Show Posts

Messages - Sam_78

Pages: [1] 2 3 ... 16
General Support / Re: Validate Zip code
« on: November 08, 2021, 09:38:36 AM »
Hi Abolabo, how do I call this function? Can I just use this function instead  public function validateRegistrationData( $data ) {

and add the lines

     $that->error['postcode] = 'Your error text here';

Because I see validation in this function that are already being used like:

if ((mb_strlen($data['city']) < 3) || (mb_strlen($data['city']) > 128)) {
         $this->error['city'] = $this->language->get('error_city');

General Support / Validate Zip code
« on: November 05, 2021, 11:05:02 AM »

On customer registration form I need only 5 digit numeric value from customer but customers are able to put some big random email address in that field. Is there any validation from backend side that can stop this? I have added this code on submit click but still I don't understand how are they able to enter it.

Code: [Select]
$('#AccountFrm_postcode').attr('maxlength', '5');
$("#AccountFrm_postcode").on("keypress keyup blur",function (event) {   
    $(this).val($(this).val().replace(/[^\d].+/, ""));
    if ((event.which < 48 || event.which > 57)) {
var zipCode = $('#AccountFrm_postcode').val();
if(zipCode.length < 5){
alert("Please enter 5 digit Zip Code");

General Support / Re: Free product with purchase
« on: October 27, 2021, 04:57:35 PM »
Hello, thanks for you reply. I have checked this extension but it applies promotion to the entire cart and doesn't have the flexibility to add on selected products. Is there a way we can test this extension before buying. I do see some screenshots but I need to play with it a little and see what all it can do.

General Support / Free product with purchase
« on: October 26, 2021, 04:46:31 PM »
Hi, is there any setting or extension that can help me.

Scenario 1 : If customer adds product A to cart then product B should be automatically added at $0.00.
Scenario 2 : If customer adds Products C to cart than Product D should be added to cart at 50% off.
Scenario 3 : If customer adds Product E to cart than prices of Product F, G and H should be reduced by 25% but customer needs to add them manually. I can create a new block for these Product F, G and H but I don't know how I will be able to take them there once they add Product E.

Can someone help or guide me in right direction.


General Support / Extension : JSON-LD for Structured Data
« on: September 27, 2021, 02:56:35 PM »
Hi, is there any extension that creates JSON structured Data like this

We have product pages and few content pages so it should be dynamic.

There is an error in console that explains the issue

Access to font at '' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

You have "www" in your url that's why you are having this issue

General Support / Re: Validation
« on: May 20, 2021, 01:56:00 PM »
Which file ?

Also, this will be server side validation so customer will be able to make a request using invalid zip-code. We can use this but I think there should be JAVASCRIPT validation before making this request.

Can you tell me the exact path for this hook ?

Redirect your site to https it should fix it. The icons are not loading over http

General Support / Validation
« on: May 19, 2021, 11:53:47 AM »
I installed V 1.13 and on create account page how can I add validation for Zip code to accept only numbers and limit 5 digits only
I can do this via Jquery in create.tpl but is there any other way to do this without editing code ? Same for phone number and other fields.

General Support / Notify When product will be back in stock
« on: November 10, 2020, 09:47:13 AM »
Hi I am looking for an extension that would show some product out of stock but customer can enter their email address and get a notification when product is available. I believe there is some extension but I am having hard time finding it. Can someone help me find that extension

Opinions / Suggestion to render latest CSS
« on: March 18, 2020, 09:29:55 AM »
Hi Developers,

I have a suggestion for some CSS and JS file that customers doesn't have to clear cache when they make changes to it.
You can add a flag (toggle button) in system->setting somewhere and if it is turned ON then update the code so that it adds current time stamp every time it refreshes
<link href="<?php echo $this->templateResource('/stylesheet/style.css') . "?v=" . date("YmdHis"); ?>" rel="stylesheet" type="text/css">
Once users are done testing their changes they can simply turn OFF that button and then timestamp will be removed something similar as what you already have for if($faster_browser_rendering == true) { .. }
I am a developer and I use this so I don't have to clear cache explicitly after every change and once I am done I can simply turn it OFF

This is just a suggestion as I know it will slow down rendering css / js file but user can turn it ON and OFF.

Installation and Configuration / Re: Create Account AbanteCart v1.2.15
« on: February 25, 2020, 12:15:15 PM »
Hi you can set values here

change 'required' => false to true if you want it required

General Support / status change emails not being BCC's
« on: January 29, 2020, 11:53:00 AM »
When I change order status of customer from pending to processing and select notify customer it doesn't send BCC to all other emails who should be getting alert emails.
I have 2 other emails added to system->setting->mail (Additional Alert E-Mails also alert email is turned ON) they do get new order emails but no emails for status changes. We want to see what exact email was sent to customer and to keep in our record thats why.

General Support / Re: Contact US form is not sending all data.
« on: January 27, 2020, 09:27:57 AM »
I do get email but with only half information. If customer has filles fistName, lastName, address, Query, zipcode, phoneNumber all I get in the email is lastName, zipCode and query thats it I don't get other details in email

General Support / Contact US form is not sending all data.
« on: January 17, 2020, 03:10:24 PM »
I have a contact us form where customer enters their firstname, lastname, inquiry, email and phone number and they all are compulsory but when we get email it only comes with last name, inquiry and phone number I also need email and firstname.
All those fields are compulsory and I have checked it on my form it says controller Contact us page. Same issue with the email we get when someone fills out contact us for we don't get other details.

Pages: [1] 2 3 ... 16

Powered by SMFPacks Social Login Mod