Ibexa DXP 折扣系统介绍.pdf

编号:651712 PDF 37页 2.37MB 下载积分:VIP专享
下载报告请您先登录!

Ibexa DXP 折扣系统介绍.pdf

1、Introduction to the Discounts systemin Ibexa DXPKonrad ObozaAbout myselfhttps:/ ObozaSenior Software EngineerIn Ibexa for over 7 yearsPasionate about rock climbingand road cyclingAgenda1.What ibexa/discounts is all about?2.Architectural concepts3.API overview4.How to extend?5.Example customization6.

2、Feature future;)RulesQuestions will be answered at the end of the session1.What is ibexa/discounts?4.6 LTS update:available for Ibexa Commerce tieropt-in packagebuilds on top of:ibexa/cart,ibexa/checkout,ibexa/storefront,ibexa/product-catalog and ibexa/order-management2.Architectural conceptsSymfony

3、 Expression Languagepublic function getExpression():stringreturn currency.getCode()=code;public function getExpression():stringreturn is_user_in_customer_group(user,customer_group);public function getExpression():stringreturn summary.getTotalPrice().getAmount()=minimal_purchase_amount;put logic into

4、 an existing expression notationcomputing on the server side instead of painful database queryingeasier to extendsupports cachingfits scenario where discount object needs to meet specific conditionshandles even very complex logic Expression ProviderExpression Providerfinal class ExpressionLanguagePr

5、ovider implements ExpressionFunctionProviderInterfacepublic function getFunctions():arrayreturn new ExpressionFunction(is_user_in_customer_group,static function():string return is_user_in_customer_group(user,customer_group);,$this,isUserInCustomerGroup),;public function isUserInCustomerGroup(array$a

6、rguments):bool$customerGroup=$argumentscustomer_group;$user=$argumentsuser;/checking the above parameters via API()return true;Rules vs Conditions?Differencesthe way discount is calculated is shaped by rulediscount needs to meet all the conditions to be selectedrule is calculated to return the final

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(Ibexa DXP 折扣系统介绍.pdf)为本站 (芦苇) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠