Show Posts


Messages - yonghan79

Pages: [1] 2 3
1
Hi Basara,

what i mean is set different price for same product on different store.

Like:

Store A, product A $20
Store B, product A $21

       

2
Hi core devs,

We are setting up multi store testing site.

We would like to know if we can set different product info to different store for the same product or not? Such as description, price etc.

If yes, how do we set it?

Also we cannot select store within product page.

We're using AbanteCart v1.3.1.

Thanks.

3
Extension Support / Re: UPS shipping problem
« on: May 20, 2021, 03:42:41 AM »
Hi Gary,

Core devs have approved my pull request.

We also have zipped the patch file for you to easily download the file. Please refer to our how-to at https://why2central.net/patch/default-ups/.

Hope it helps.

4
Extension Support / Re: UPS shipping problem
« on: May 11, 2021, 04:18:26 AM »
Hi Basara,

I have create the pull request.

Please check it.

5
Extension Support / Re: UPS shipping problem
« on: May 11, 2021, 02:05:04 AM »
You're welcome Gary.

Now we just need to wait for core devs result and their fix.

6
Extension Support / Re: UPS shipping problem
« on: May 10, 2021, 09:01:07 PM »
Hi,

I have made some test and found out the production API endpoint for UPS is wrong. It should be:

Code: [Select]
https://onlinetools.ups.com/ups.app/xml/Rate
and not:

Code: [Select]
https://www.ups.com/ups.app/xml/Rate
The UPS Curl error message is referring to the wrong UPS Curl being called by the default UPS extension.

Now i am able to get the rates.

I have post the bug in GitHub too.

7
Thanks abolabo. I will try it.

8
Hi core devs,

I am using trying to add some product info in cart lib by using the
Code: [Select]
onACart_ProccessData() and the method is
Code: [Select]
ACart::buildProductDetails
I also hook into storefront product page by using
Code: [Select]
onControllerPagesProductProduct_UpdateData

I pass the additional data by using
Code: [Select]
$that->view->batchAssign( $this->data ); and using
Code: [Select]
$that->processTemplate( 'pages/xxxx/xxxx.tpl' );
When i open the product page i get
Code: [Select]
Unknown Error:  AbanteCart core v.1.3.0 Call to a member function batchAssign() on null and
Code: [Select]
Unknown Error:  AbanteCart core v.1.3.0 Call to undefined method ACart::processTemplate()
I wonder if i missed anything in my code?

Thanks

9
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 08:51:26 PM »
Thanks abolabo. I will do some more testing to understand better.

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

11
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 06:08:35 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?

12
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 06:01:08 AM »
Code: [Select]
foreach ($total_extns as $extn) {
            $sf_total_mdl = $this->load->model('total/'.$extn['key'], 'storefront');
            /**
             * parameters are references!!
             *
             * @var ModelTotalTotal $sf_total_mdl
             */
            $sf_total_mdl->getTotal($total_data, $total, $taxes, $this->cust_data);
            //trick to change data via hooks
            $this->data = [
                'total_key'  => $extn['key'],
                'total_data' => $total_data,
                'total'      => $total,
                'taxes'      => $taxes,
            ];
            $this->registry->get('extensions')->hk_ProcessData($this, __FUNCTION__, ['total_text_id' => $extn]);

            $total_data = $this->data['total_data'];
            $total = $this->data['total'];
            $taxes = $this->data['taxes'];
            unset(
                $this->data['total_key'],
                $this->data['total_data'],
                $this->data['total'],
                $this->data['taxes']
            );
            $sf_total_mdl = null;
        }

I see there is //trick to change data via hooks.

13
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 05:49:48 AM »
Got it, i will do some more testing.

Another question. I see there is
Code: [Select]
$this->registry->get('extensions')->hk_ProcessData($this, __FUNCTION__, ['total_text_id' => $extn]); within the cart.php too.

How do i use it?

14
API Development / Re: Get cust data in lib/cart.php
« on: April 30, 2021, 05:34:28 AM »
Thanks abolabo, i will learn about them first. I will ask again if i don't understand.

I wonder if it's possible to change the protected cust_data become public cust_data in the cart.php?

15
API Development / Get cust data in lib/cart.php
« on: April 29, 2021, 08:42:19 PM »
Hi core devs,

I wonder if we can get/set the cust_data within the lib/cart.php via hook?

I want to add some info in add and buildProductDetails from admin side.

Thanks.

Pages: [1] 2 3

Powered by SMFPacks Social Login Mod