Show Posts

Messages - Sam_78

Pages: [1] 2 3 ... 14
General Support / suggestion for login | register text
« on: October 08, 2019, 11:18:49 AM »
I think there is some issue with session or cookie. I was able to reproduce this with v 1.2.11 , 1.2.13, 1.2.15
when user is logged in and made a purchase but then he/she forgets to log out and our site is open in one of the tab. When they open it next day they still see themselves as logged in 'Welcome Back UserName' but when they actually add product to their cart it asks them to sign in again.
I believe the cookie expires but can this be done by ajax so that its not confusing. If it shows them message on top saying 'Welcome Back UserName' and then asking them to sign in. As they can hover on it and see all the options that are there for signed in user like 'log off', 'account dashboard' etc.

How-to questions / Re: Extend order (add a generated text)
« on: October 03, 2019, 10:33:08 AM »
Which table have you added those column in? Have you tried function confirm in order.php and use $this->session->data[ 'codes' ];

Support / Re: Whatsapp Share to Store Owner - Product Pages
« on: October 03, 2019, 10:23:59 AM »
You can add whatsapp icon to product page that's simple but how do you think you will get customer's phone number because from what I read is you will need customers phone number to initiate that chat.

To insert icon on product page you can add your code inside this div or above it based on your requirement

Options I can think of is either customer has to be logged in with correct phone number that has been connected to his/her whatsapp or second option is you can create a small pop-up form which appears when they click on that icon and you ask for their phone number and when they enter their phone number you can send a whatsapp message to yourself from that number along with the product page link.

Check this extension

How-to questions / Re: Extend order (add a generated text)
« on: October 03, 2019, 10:12:07 AM »
For every product is code same? for example
"2x Game PQ, 1x Game HX --> generate 2x PQ code, 1x a HX code and put those 3 into unlockCodes"
code for Game PQ will always be same?

If so than you need to add a field in product page (admin side) and then automatically it will be added to that order and you can display it in success.tpl as well as in invoice.
Consider SKU as example.
you can get SKU in invoice and on success page you can print them.
So create a similar field like SKU and it should solve your problem with less amount of code change
Another solution: There are multiple fields on product if you are not using any one of them for example 'length' or 'weight' or any other field just change its name to code and add code to individual product and use it wherever you want.

General Support / Re: mixed content issue
« on: September 30, 2019, 09:16:01 AM »
have you made any changes in your .htaccess file?

How-to questions / Re: Extend order (add a generated text)
« on: September 30, 2019, 09:14:24 AM »
you can use it in mail.tpl

How-to questions / Re: Extend order (add a generated text)
« on: September 27, 2019, 04:54:43 PM »
You can set it as cookie so that refresh issue is fixed
and add your code in success.tpl

Like This :

<!DOCTYPE html>
function setCookie(cname,cvalue,exdays) {
  var d = new Date();
  d.setTime(d.getTime() + (exdays*24*60*60*1000));
  var expires = "expires=" + d.toGMTString();
  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";

function getCookie(cname) {
  var name = cname + "=";
  var decodedCookie = decodeURIComponent(document.cookie);
  var ca = decodedCookie.split(';');
  for(var i = 0; i < ca.length; i++) {
    var c = ca;
    while (c.charAt(0) == ' ') {
      c = c.substring(1);
    if (c.indexOf(name) == 0) {
      return c.substring(name.length, c.length);
  return "";

function checkCookie() {
  var code=getCookie("codeCookie");
  if (code != "") {
    //alert("already set " + code);
  document.getElementById("random").innerHTML = code;
  } else {
  var code = Math.floor((Math.random() * 100000) + 1);
  document.getElementById("random").innerHTML = code;
     if (code != "" && code != null) {
       setCookie("codeCookie", code, 30);
<body onload="checkCookie()">
<p id="random"></p>

How-to questions / Re: Extend order (add a generated text)
« on: September 27, 2019, 03:14:47 PM »
Can you please explain us in detail what are you trying to do rather than figuring out all these functions. Maybe there is one easy solution that I can think of from what I understood  \storefront\view\default\template\pages\checkout\success.tpl you can write your code here so that customer can get it after payment is confirmed. If you want to send it in email then you need to edit this \storefront\view\default\template\mail\order_confirm.tpl 

Every project has different structure and maybe you are trying to re-invent the wheel. Let us know what exactly you are trying to achieve and we can help you.

From what I understood is:
1.You need to pass a code to customer after payment is confirmed?
2.Store it in database so you can refer to it?

How-to questions / Re: Extend order (add a generated text)
« on: September 27, 2019, 11:03:21 AM »
What Basara means is that you need to edit your payment extension code:
If you are using paypal or extension then you need to edit code in that folder
1. extensions\authorizenet\storefront\controller\responses\extension\authorizenet.php
2. extensions\authorizenet\storefront\model\extension\authorizenet.php
3. extensions\authorizenet\storefront\view\default\template\responses\authorizenet.tpl

Since you have basic knowledge of Java you can use it here and edit these files. You can just look at code its very neat and clear you will understand how you can pass your code to table orders after adding a new column to it.

You can see functions like public function recordOrder($order_info) or something like that based on your extension and then just add your newly added field into Insert Query.

How-to questions / Re: Redirect problems
« on: September 24, 2019, 09:36:39 AM »
Can you share your .htaccess file along with store url you have in your AbanteCart Setting

Support / Re: shipping page
« on: September 09, 2019, 04:49:11 PM »
There is one option in your product page on admin side that says 'Requires Shipping' turn it to ON and see if it solves your problem.

Installation and Configuration / Re: Russian language
« on: August 27, 2019, 12:18:33 PM »
ok Can you
1. share the actual url for img1 & img2
2. share url setting that you are using system->setting->store url (both of them)
3. share .htaccess file
4. do you see img2 when u try to install any other extension as well?
5. Can you re download the extension from  and try again after clearing system cache and browser cache/cookies

Installation and Configuration / Re: Russian language
« on: August 27, 2019, 09:13:29 AM »
Can you look at the error log about error and post it here so we can help you.

General Support / Re: .htaccess redirect issue with directory listing
« on: August 23, 2019, 04:50:19 PM »
Actually I escalated this issue for web hosting and they figured out the issue they went to WHM and set directory priority for index.html at first position and it worked correctly.

General Support / Re: .htaccess redirect issue with directory listing
« on: August 23, 2019, 09:26:43 AM »
I am using that same .htaccess and contacted host they are saying something is wrong with .htaccess if I remove .htaccess my website shows list of directories. I am wondering why is my home page saying 'page not found' where as works correctly

Pages: [1] 2 3 ... 14

Powered by SMFPacks Social Login Mod