Show Posts


Messages - Sam_78

Pages: [1] 2 3 ... 16
1
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

 if(mb_strlen($that->request->post['postcode'])>5){
     $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');
      }





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

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)) {
    event.preventDefault();
    }
});
var zipCode = $('#AccountFrm_postcode').val();
if(zipCode.length < 5){
alert("Please enter 5 digit Zip Code");
event.preventDefault();
$('#AccountFrm_postcode').focus();
}

3
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.

4
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.

Thanks

5
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

https://developers.google.com/search/docs/advanced/structured-data/generate-structured-data-with-javascript#custom-javascript

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

6
There is an error in console that explains the issue

Access to font at 'https://www.theresamatherfantasyshop.com/dir/storefront/view/default/fonts/fontawesome-webfont.woff2?v=4.7.0' from origin 'https://theresamatherfantasyshop.com' 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

7
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 ?

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

9
General Support / Validation
« on: May 19, 2021, 11:53:47 AM »
Hi,
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.

10
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

11
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 https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/common/head.tpl#L50 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.

12
Installation and Configuration / Re: Create Account AbanteCart v1.2.15
« on: February 25, 2020, 12:15:15 PM »
Hi you can set values here
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/account/create.php#L207

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

13
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.

14
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

15
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