Show Posts


Messages - Sam_78

Pages: [1] 2 3 ... 14
1
Support / Re: How can i setup orders cash or credit
« on: Today at 09:22:33 AM »
Can you tell me exactly what you are trying to do??

When do you want to add these credits? on cart page, confirm page, payment confirmed (success) page etc.

you can add an ajax call or normal url (www.your-website.com/addCredit.php?customer_id=123&otherParameters=123) to a php script which will run your query

2
Support / Re: How can i get the customer_id in cart.php
« on: October 21, 2019, 04:33:23 PM »
\storefront\controller\pages\checkout\cart.php

3
Support / Re: How can i setup orders cash or credit
« on: October 21, 2019, 04:29:34 PM »
Create a php script and make an ajax call to it whenever new customer is created so that query will be executed.


4
Configuration / Re: Images not enabled in SSL mode
« on: October 21, 2019, 12:41:27 PM »
Yes it is related to permission
try to open one of this image in your browser
https://shop.crazygardener.in/image/thumbnails/18/7b/Manufact_lgO_png-100286-57x57.png


5
Configuration / Re: Images not enabled in SSL mode
« on: October 18, 2019, 01:58:34 PM »
Did you do this ? https://abantecart.atlassian.net/wiki/spaces/AD/pages/5832828/Store+URLs+SSL 
Changed your url in setting?

6
General Support / suggestion for login | register text
« on: October 08, 2019, 11:18:49 AM »
Hi,
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.

7
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' ];

8
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
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/product/product.tpl#L127

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 https://marketplace.abantecart.com/promotions/si_whatsapp

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

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

11
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

12
How-to questions / Re: Extend order (add a generated text)
« on: September 27, 2019, 04:54:43 PM »
okay
You can set it as cookie so that refresh issue is fixed https://www.w3schools.com/js/tryit.asp?filename=tryjs_cookie_username
and add your code in success.tpl


Like This :


<!DOCTYPE html>
<html>
<head>
<script>
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);
     }
  }
}
</script>
</head>
<body onload="checkCookie()">
<p id="random"></p>
</body>
</html>


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


14
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 authorize.net 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.

15
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

Pages: [1] 2 3 ... 14

Powered by SMFPacks Social Login Mod