Show Posts


Messages - abolabo

Pages: 1 2 [3] 4 5 ... 129
31
Configuration / Re: New Order Status
« on: June 03, 2021, 06:37:54 AM »
that's error.

You should to insert new row into order_status_ids table with orders status id = 17 and some text ID

32
Configuration / Re: New Order Status
« on: June 03, 2021, 04:06:46 AM »
hi,
To fix just open phpMyAdmin, table "order_status_ids" and check what text ID for order_status_id 17.
Also check table order_statuses for description of this order_status_id.

33
General Support / Re: Validation
« on: May 20, 2021, 05:34:06 PM »
hmm.. i thought you created your own custom extension to affect on base functionality.
i think you should.
Also you can create account/create.post.tpl inside your extension with your js-code to extend base accoun/create.tpl

See more details here
https://abantecart.atlassian.net/wiki/spaces/DOC/pages/17694951/Extension+Process+Overview

34
General Support / Re: Validation
« on: May 20, 2021, 03:55:05 AM »
hi.
better way to do validation via validation hook .

public function onModelAccountCustomer_ValidateData()
{
    $that = $this->baseObject;
     if( !preg_match('[^0-9]',  $that->request->post['postcode'] ){
           $that->error['postcode'] = 'Your error text here';
     }
}

35
General Support / Re: Tax issue
« on: May 18, 2021, 12:18:46 PM »
Let me explain,  my final price of that product is 11,95€

So if i do 11,95 ÷ 1,23 % = 9.715€   <-- This is the correct formula

If i do 9.71€ + 23% it will give me 11,94€    (if i use 2 decimal numbers it will give me this price)

If i do 9,72 + 23% it will give me 11,96€, do you understand?   

I came from opencart and it worked and already tested Prestashop and its also works.

So theres something wrong here.  Why does it show the right price in my first photo and then when you enter the product and also in fastcheckout it shows 11,96€.

can you check fix from this commit  ?

Just replace your files with changed

36
General Support / Re: Tax issue
« on: May 17, 2021, 10:46:53 AM »
you're right, i forgot to tell you the base price, its 9,715€

Why do you have 3 digits after comma for euro?

37
General Support / Re: Tax issue
« on: May 17, 2021, 04:46:14 AM »
please give us more details

i mean product price without any taxes (as i asked before, you can see it inside product table)

You show for us result of price calculation and to test we need to replicate this bug on our side.
But how to replicate when we don't know "source" price ?

38
General Support / Re: Tax issue
« on: May 17, 2021, 04:27:09 AM »
can you check what value of price in the database table "your-prefix_products" for this product_id ?

39
General Support / Re: No image with Data Import
« on: May 11, 2021, 05:04:24 AM »
please replace two files from this commit  to solve issue

40
Some extension broke your cart.
Just try to disable one-by-one via admin to detect which one

41
Thanks, I took a look at the php file and method you suggested, I'm afraid it's my turn to not be sure I understand :-)

I see a bunch of bits which look interesting in there (e.g. $this->request->get['customer_id']), but the problem is I don't know how my php code can instanciate the "$this". I am too much of a beginner with respect to MVC frameworks, so I am hoping to simply be able to "get the cookie / read it", perhaps using some premade AbanteCart functions, in order to know who is logged in.

This code would be on the same domain, at the root, so there would not be any cross-domain issues for retrieving the session information, if that was your question? So basically this is external code, but (I think) it still resides "inside" the session...

Hope this is more clear! Tepp

You can use global array $_GET for access to $this->request->get['customer_id'].
$this is an object created by class. You don need this.

Just look on function call there:

startStorefrontSession(
     $this->user->getId(),
     [
      'customer_id' => $this->request->get['customer_id'],
      'merchant_username' => $this->user->getUserName()
     ]
);

you can play with parameters  for Example startStorefrontSession(1, [ 'customer_id' => $some_your_id ];

hope this help

42
hi,
not sure understood you corrrectly.

Abantecart session data contains customer id of logged customer.
Is your "outside" app will run inside this session?

You can play with a admin-side code that allow to act-on-behalf
(see admin/controller/pages/sale/customer.php  method actonbehalf())

43
just add condition with check

if($that->view){
$that->view->assign()....

44
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 10:03:44 AM »
Thanks abolabo.
about the ['total_text_id'=>$extn] ? What it is used for?

see order_totals table in the database, column `key`.
Usually this key used for order recalculation process

45
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 06:14:55 AM »
I am testing the ACart_ProcessData but i don't know how to add data to that hook. What is the ['total_text_id' => $extn] used for?

Do you mind giving me an example?
public function onACart_ProcessData(){

$that = $this->baseObject;
//change  $this->data property of ACart object is PUBLIC
// $that->data  = ....your code here
}

Pages: 1 2 [3] 4 5 ... 129

Powered by SMFPacks Social Login Mod