News:

AbanteCart v1.4.3 is released.

Main Menu

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 - yonghan79

#61
Extension Support / Re: UPS shipping problem
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.
#62
Extension Support / Re: UPS shipping problem
May 11, 2021, 04:18:26 AM
Hi Basara,

I have create the pull request.

Please check it.
#63
Extension Support / Re: UPS shipping problem
May 11, 2021, 02:05:04 AM
You're welcome Gary.

Now we just need to wait for core devs result and their fix.
#64
Extension Support / Re: UPS shipping problem
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:

https://onlinetools.ups.com/ups.app/xml/Rate

and not:

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.
#66
Hi core devs,

I am using trying to add some product info in cart lib by using the onACart_ProccessData() and the method is ACart::buildProductDetails

I also hook into storefront product page by using onControllerPagesProductProduct_UpdateData

I pass the additional data by using $that->view->batchAssign( $this->data ); and using $that->processTemplate( 'pages/xxxx/xxxx.tpl' );

When i open the product page i get Unknown Error:  AbanteCart core v.1.3.0 Call to a member function batchAssign() on null and Unknown Error:  AbanteCart core v.1.3.0 Call to undefined method ACart::processTemplate()

I wonder if i missed anything in my code?

Thanks
#67
API Development / Re: Get cust data in lib/cart.php
April 30, 2021, 08:51:26 PM
Thanks abolabo. I will do some more testing to understand better.
#68
API Development / Re: Get cust data in lib/cart.php
April 30, 2021, 09:07:07 AM
Thanks abolabo.
about the ['total_text_id'=>$extn] ? What it is used for?
#69
API Development / Re: Get cust data in lib/cart.php
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?
#70
API Development / Re: Get cust data in lib/cart.php
April 30, 2021, 06:01:08 AM
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.
#71
API Development / Re: Get cust data in lib/cart.php
April 30, 2021, 05:49:48 AM
Got it, i will do some more testing.

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

How do i use it?
#72
API Development / Re: Get cust data in lib/cart.php
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?
#73
API Development / Get cust data in lib/cart.php
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.
#74
Built-in Features / Re: Local Delivery
September 14, 2020, 08:56:39 PM
Hi,

We have added the ability for admins to use asterisk/wildcard for the post codes such as SN*, 35* etc. So admin doesn't have to enter the post code one by one anymore. And it is not case sensitive, so when customer enter sn1, the local delivery rate is shown.

And we have create a pull request here https://github.com/abantecart/abantecart-src/pull/1424 in github.

Changes made by WHY2 Support for AbanteCart.

#75
Hi Hani,

Based on your error log, i found out the warning message is caused by our Editor extension.

Have you update the extension version?

Can you please create a support ticket via our support system at https://wehearyou2.com/clientarea/client/login/ so we can fix it for you?

Thanks.

WHY2 Support Team

Forum Rules Code of conduct
AbanteCart.com 2010 -