News:

AbanteCart v1.4.3 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sam_78

#46
General Support / Re: PHP and mySql version for 1.2.11
February 01, 2022, 02:32:46 PM
Any help?
#47
General Support / PHP and mySql version for 1.2.11
January 31, 2022, 09:12:03 AM
Hello,

I am using AbanteCart Version 1.2.11 and our hosting wants to upgrade php and MySql. We have lots of custom code so I can't simply upgrade abanteCart.
My question is have someone tried 1.2.11 with PHP 7.4 and mySQL 5.7 ? if not than what was the latest version y'all tried?

Thanks
#48
General Support / Re: Validate Zip code
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');
      }




#49
General Support / Validate Zip code
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.

$('#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();
}
#50
General Support / Re: Free product with purchase
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.
#51
General Support / Free product with purchase
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
#52
General Support / Extension : JSON-LD for Structured Data
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.
#53
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
#54
General Support / Re: Validation
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 ?
#55
Redirect your site to https it should fix it. The icons are not loading over http
#56
General Support / Validation
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.
#57
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
#58
Opinions / Suggestion to render latest CSS
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.
#59
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
#60
General Support / status change emails not being BCC's
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.

Forum Rules Code of conduct
AbanteCart.com 2010 -