Search found 41 matches
- 19 Aug 2023, 16:14
- Forum: Help
- Topic: Pass data from delivery service decorator to view
- Replies: 5
- Views: 37031
Re: Pass data from delivery service decorator to view
Thank you this helps me get a little further. I have been reading the documentation and playing with getConfigFE(), but not sure I am understanding.. When I implement the following test in my custom decorator: public function getConfigFE( \Aimeos\MShop\Order\Item\Iface $basket ) : array { $list = pa...
- 15 Aug 2023, 21:44
- Forum: Help
- Topic: Pass data from delivery service decorator to view
- Replies: 5
- Views: 37031
Pass data from delivery service decorator to view
Hello, Laravel Framework 10.13.1, php8.1-fpm, aimeos/aimeos-laravel 2023.04.2 In my delivery service decorator I am getting FedEx shipping rates from the FedEx API for use in calcPrice(). I also want to use the shipping transit time from their API as well and display it with each delivery option pre...
- 10 Aug 2023, 12:17
- Forum: Help
- Topic: Injecting coupon by url parameters
- Replies: 8
- Views: 20754
- 09 Aug 2023, 21:41
- Forum: Help
- Topic: Injecting coupon by url parameters
- Replies: 8
- Views: 20754
Re: Injecting coupon by url parameters
Hello, When I try to use '\Aimeos\Shop\Facades\Basket::addCoupon('percent')' in my controller I get: 'Illegal offset type in isset or empty' Do I need to somehow instantiate an instance of a basket? or an instance of Aimeos? I don't understand how this controller knows anything about Aimeos in order...
- 06 Aug 2023, 20:47
- Forum: Help
- Topic: Injecting coupon by url parameters
- Replies: 8
- Views: 20754
Re: Injecting coupon by url parameters
Hello, I may, or may not, have got a little further, my code now: class CampaignController extends Controller { public function handleOffer(Request $request, $key) { $context = app('aimeos.context')->get(true); $orderManager = \Aimeos\MShop::create( $context, 'order' ); $basket = $orderManager->getS...
- 06 Aug 2023, 15:53
- Forum: Help
- Topic: Injecting coupon by url parameters
- Replies: 8
- Views: 20754
Re: Injecting coupon by url parameters
Hello, Could you expand on adding a coupon into the cart from my own controller? I been looking at example code and documentation, but I'm not fully understanding.. Currently I am only as far as doing the following: class CampaignController extends Controller { public function handleOffer(Request $r...
- 04 Aug 2023, 11:50
- Forum: Help
- Topic: Where could I store some key/value pairs?
- Replies: 3
- Views: 15405
Re: Where could I store some key/value pairs?
Thank you, If I wanted to programmatically keep these values up-to-date, could I keep updating these values directly in the database? I see its here: mysql> select * from mshop_plugin where provider = 'TaxRates' limit 5 \G *************************** 1. row *************************** id: 9 siteid: ...
- 02 Aug 2023, 11:50
- Forum: Help
- Topic: Where could I store some key/value pairs?
- Replies: 3
- Views: 15405
Where could I store some key/value pairs?
Hello, Laravel Framework 10.13.1, php8.1-fpm, aimeos/aimeos-laravel 2023.04.2 I want to implement sales tax per state. I want to avoid doing additional API calls during the checkout/basket process. My thought process is that I can store sales tax rates for each state in a database table. I will then...
- 29 Jul 2023, 12:49
- Forum: Help
- Topic: Injecting coupon by url parameters
- Replies: 8
- Views: 20754
Injecting coupon by url parameters
Hello, Laravel Framework 10.13.1, php8.1-fpm, aimeos/aimeos-laravel 2023.04.2 When I setup ad campaigns, im thinking I would create different URL's for advertised discounts, ex: : New Fishing Reels! - Free Shipping https://mysite/shop/new-reels?code=freeshipping&referrer=google 10% Off All Plast...
- 29 Jul 2023, 12:27
- Forum: Help
- Topic: Frequency of delivery service decorator being called
- Replies: 5
- Views: 16411
Re: Frequency of delivery service decorator being called
Thank you, when you reference the following code:
What is <basket type>? Is this the mini basket vs standard basket? or something in relation to the ability to save baskets?
Code: Select all
$this->context()->session()->set( 'myplugin/<basket type>/hash', '...' );