PrestaShop Product Properties Extension Smart Price Plugin

1y ago
17 Views
2 Downloads
1.36 MB
17 Pages
Last View : 4m ago
Last Download : 3m ago
Upload by : Mya Leung
Transcription

Product Properties Extension – Smart Price pluginPrestaShop Product Properties ExtensionSmart Price pluginIntroductionThe PS&More Product Properties Extension Smart Price plugin adds additional functionality to the ProductProperties Extension module. The plugin allows you to specify rules that affect the product price calculations.You can also add quantity and price dependent explanations for the customer, making the shopping experiencemore attractive.The Smart Price plugin comes with the rich set of built-in configuration options and rules. It also allows userdefined expressions and customizations, giving endless possibilities for complex price calculations.Access the Smart Price pluginYou access the module configuration either through the "Modules" tab in the PrestaShop back-office or throughthe "Smart Price Rules" menu item in the “PRICE RULES” menu.Copyright 2011-2018 PS&More. All rights reserved.Page 1 of 17

Product Properties Extension – Smart Price pluginUsing the Smart Price pluginYou start working with the plugin by creating the Smart Price Rules. Just press the “Add new rule” button. Youcan edit, duplicate or delete the rule at any time by pressing the “Edit”, “Duplicate” or “Delete” buttons.SettingsWhen working with the plugin you can enable the debug mode. When enabled, the module displays additionalinformation about the active rules and built-in variables. This information is visible to your customers in theFront Office, so it is a good idea to put your shop in the maintenance mode.Copyright 2011-2018 PS&More. All rights reserved.Page 2 of 17

Product Properties Extension – Smart Price pluginThe Smart Price Rule configurationThe Smart Price Rule configuration page has several sections giving access to different rule settings.Rule InformationYou specify general rule configuration information in the “Rule Information” section.FieldDescriptionNameRule name is an internal name and not visible in the shop. Rule name is mandatory.DescriptionCurrencyExpressionsRule description. Any text to help you to identify the rule. If you do not give anydescription, the one will be auto generated for you.Currency used to specify the amount related values in the rule’s action section. Currencyexchange rates used for calculations the amount related values in other currencies.Currency is mandatory.You can enable or disable expressions for the rule. If you do not use expressions, forperformance reasons leave this option disabled.See the “Using expressions” section in this document.Copyright 2011-2018 PS&More. All rights reserved.Page 3 of 17

Product Properties Extension – Smart Price pluginFieldCustomizationStatusDescriptionYou can enable or disable customizations for the rule. If you do not create user definedcustomizations, for performance reasons leave this option disabled.See the “User defined customizations” section in this document.You can enable or disable the rule. The disabled rule not used for price calculations.Rule ConditionsThe “Rule Conditions” section specifies conditions when to perform the rule actions. The rule applied to anyproduct when all of the enabled conditions met, meaning that many different products can share the same rule.Copyright 2011-2018 PS&More. All rights reserved.Page 4 of 17

Product Properties Extension – Smart Price pluginProducts selection conditionThe product selection condition applied to any product specified in the condition. You select products by usingthe “Choose” button.The list of available products appears in new window. Move the products from the left panel to the right one byselecting products and clicking on the "Add" button, and close the window by clicking on the “Done” or on the"X" at the top right.Templates selection conditionThe template selection condition applied to any product with the template in the selection assigned to theproduct. You manage templates and assign them to the products using the Product Properties Extensionmodule.Attributes selection conditionThe attributes selection condition consists of one or many groups. Each group specifies the attributescombination. The group applied to any product when all specified attributes in the group selected by thecustomer. You do not need to specify all available product attributes. The product can have more attributes.The attributes selection condition applied to any product when any one of the attribute group conditions met.You can create as many groups as you need.Copyright 2011-2018 PS&More. All rights reserved.Page 5 of 17

Product Properties Extension – Smart Price pluginRule ActionsThe “Rule Actions” section is a collection of all actions performed by the rule and specifies how the product totalprice is calculated. You can specify two different types of impacts that affect the total price. If you have enabledexpressions for the rule, you can also create the expression. See the “Using expressions” section in thisdocument.The fixed impact specifies the fixed amount added to (or subtracted from) the total price. This amount doesnot depend on the quantity.The quantity impact depends on the quantity. The product quantity entered by user multiplied by thespecified value and the result added to (or subtracted from) the total price.Copyright 2011-2018 PS&More. All rights reserved.Page 6 of 17

Product Properties Extension – Smart Price pluginImpact can be global and applied on the product or can depend on template or attribute. The “Templateimpact” action is available when the rule conditions define one or more templates in the "Template selection"section. The “Attributes impact” action is available when the rule conditions define one or more attribute groupsin the "Attribute selection" section.If your product has template that uses the multidimensional feature, the “Template impact” action will includethe template related multidimensional attributes.Copyright 2011-2018 PS&More. All rights reserved.Page 7 of 17

Product Properties Extension – Smart Price pluginRule TextThe “Rule Text” section defines optional text used as explanation or price qualification. Different explanationcan appear on product page, on the shopping-cart summary and order, and on the invoice. The text istranslatable to any language.Copyright 2011-2018 PS&More. All rights reserved.Page 8 of 17

Product Properties Extension – Smart Price pluginYou can use macros in the text string to substitute the results of the price calculation. All price related macrosformatted according to the currency currently used by the customer and include the currency sign. You do notneed to specify the currency. For other values, you can use formatWithCurrency (since 2.4) built-in function toformat a value with the currency sign. The following macros are available.MacroDescription{T}The resulting product total price for the quantity specified by user.{Q}Quantity used in the calculation.{C}The calculated price added to the total price by all rules (uppercase C).{c}The calculated price added to the total price by the rule, where this text is defined(lowercase c).{U}Calculated unit price (the total price divided by quantity).{W}Calculated product weight (depends on quantity). (since 2.0)Built-in function to format a value with a currency sign. You do not need to useformatWithCurrency braces. (since 2.4)For example, formatWithCurrency(Q)Multiple Rules behaviorYou can create as many rules as you need. When several rules configured and applied to the same product therules processed in the order defines by the rule position. The sequence usually does not matter for the pricecalculation. However, if several rules define texts the resulting text is a concatenation of all texts from all appliedrules. In this case, the order of the rules is important. You can easily change the rule position by dragging theanchor in the position column in the rules list and dropping the rule in the new position. See the picture“Using the Smart Price plugin” section in this document.Rule AnalysisThe “Rule Analysis” is a handy tool where you can verify rule conditions and analyze what products match theconditions.Copyright 2011-2018 PS&More. All rights reserved.Page 9 of 17

Product Properties Extension – Smart Price pluginJust press the “Run analysis” button and review the results.The results organized in the table. Rules that match the conditions indicated by greensign. Rules that do notmatch the conditions indicated by red sign. If you would like to see more detailed analysis results, you canpress the “show more details” link.The ID column specifies the product id used in the analysis.The Product column shows the product name and list all the rules that have “Products selection” conditionenabled and match the product.Copyright 2011-2018 PS&More. All rights reserved.Page 10 of 17

Product Properties Extension – Smart Price pluginThe Template column shows the template name and list all the rules that have “Templates selection” conditionenabled and match the product.The Attributes column shows the product combinations together with the attribute names and list all the ruleswith “Attributes selection” condition enabled and have the “Attributes selection” groups match the product.The Summary column is the most interesting column. The rules match all conditions and apply to the productindicated by greensign.Copyright 2011-2018 PS&More. All rights reserved.Page 11 of 17

Product Properties Extension – Smart Price pluginUsing expressionsThe Smart Price plugin supports mathematical expressions defined by user. To use expressions you need toenable this option in the “Rule Information” section. When enabled, the “expression” input field appears in the“Rule Actions” section together with the impact fields.You define expressions to calculate price. The calculated result is added to the total price.Expressions can use , -, *, /, mathematical operators. Expressions support order of operation, parentheses,negation, built-in functions. You can define your own variables and functions. When using variables andfunctions, separate your definitions by semicolons.Here are several simple examples:2 2-8(5/2) 2*(1-sqrt(4))-8You can create your own variables:or functions:and then use them:a e (ln(pi))f(x,y) x 2 y 2 - 2x*y 13*f(42,a)When using variables and functions, separate your definitions and calculations by semicolons:Copyright 2011-2018 PS&More. All rights reserved.Page 12 of 17

Product Properties Extension – Smart Price plugina e (ln(pi)); f(x,y) x 2 y 2 - 2x*y 1; 3*f(42,a)You can use built-in variables that hold user input. For example, variable Q refers product quantity entered byuser, and you can create expression using this variable:Q*0.2 1.3Note: always use dot as a decimal separator in numbers.If your product uses template with the multidimensional feature, built-in variables Q1, Q2 and Q3 hold userinput for each dimension in the order the dimensions defined in the template. For convenience, expression foreach multidimensional attribute shows the name of the built-in variable that holds user input for this dimension.You can use the attribute related variables in any expression for products with this template. This works even ifyou do not specify templates in the rule conditions "Template selection" section.Q1*Q2 0.6Testing expressionYou can test expression by clicking the “Test” button. When testing expression, the constant value “1” assignedto all built-in variables, like variable Q, that hold user input.See “Appendix A” for a full list of build-in operators, variables and functions.Copyright 2011-2018 PS&More. All rights reserved.Page 13 of 17

Product Properties Extension – Smart Price pluginUser defined customizationsThe Smart Price plugin supports customizations defined by user. You can write your own code in PHP and theplugin will call your code when needed. You can write code that calculates the product or total price, or yourown explanation text. From your code, you can call PrestaShop internal methods, access the database orperform any other designed activities. This gives endless possibilities to adjust the price calculations to yourneeds.In order to use the customizations you need to install free “Product Properties Extension customization”module. Please contact our friendly customer support team at support@psandmore.com for instructions.PS&More team can also write code for you and provides paid customization service for our customers.The PS&More PrestaShop Product Properties Extension Smart Price plugin requires the Product PropertiesExtension module to be available, installed and properly configured.To install the plugin module follow the documentation how to install the PrestaShop modules available athttp://doc.prestashop.com/display/PS16/Managing Modules and Themes.The installation procedure automatically integrates the plugin with the PS&More PrestaShop Product PropertiesExtension module.Copyright 2011-2018 PS&More. All rights reserved.Page 14 of 17

Product Properties Extension – Smart Price pluginAppendix AUsing expressionsThe PS&More Product Properties Extension Smart Price plugin expression engine supports the following built-inoperators, variables and functions.Table 1: Mathematical OperatorsNameDescription plus (addition)minus (subtraction) or negation operator (opposite of number)*multiplication (product of two numbers)/division (quotient of two numbers) powerTable 2: VariablesNamepieQWQ1, Q2, etc.Table 3: FunctionsNamepi()rand float()Descriptionmathematical constant π, the ratio of a circle's circumference to its diameter(approximately 3.14159)mathematical constant e, base of the natural logarithm (approximately 2.71828)product quantity entered by usercalculated product weight (depends on quantity) (since 2.0)You can use macros specified in the "ACTIONS" tab for multidimensional attributes forproducts using template with the multidimensional feature.For example, {Q1} can refer to a quantity entered by user for the first multidimensionalattribute.Descriptionbuilt-in function without arguments, for example: pi()mathematical constant πgenerate a random floatbuilt-in function with one argument, for example: sqrt(16)sin, sinh, arcsin, asin, arcsinh, asinhcos, cosh, arccos, acos, arccosh, acoshtrigonometric circular and hyperbolic functionstan, tanh, arctan, atan, arctanh, atanhsqrtsquare rootabsabsolute valuelnnatural logarithm (alias log can be used)Copyright 2011-2018 PS&More. All rights reserved.Page 15 of 17

Product Properties Extension – Smart Price pluginNameexpDescriptioncalculates the exponent of erounds a float to zero number of digits after the decimal point (seealso round with two arguments)round fractions downround fractions uproundfloorceilbuilt-in function with two arguments, for example: rand int(0, 10)rounds a float to specified precision (number of digits after theround(value, precision)decimal point)rand int(min, max)generate a random integer between min and maxmod(a, b)modulus (remainder of a divided by b)power(base, exp)exponential expression (base raised to the power of exp)maxminsumaveragebuilt-in function with multiple arguments, for example: average(2, 4.8, 6.5, 12)maximum (find highest value)minimum (find lowest value)summation (find sum of values)find averageequals(a, b) (since 2.6)not(x) (since 2.6)if(x,arg1,arg2) (since 2.6)choice(x,arg1,arg2, ) (since 2.6)logical functionsreturns 1 if a equals b; 0 otherwisenegates the argumentreturns 1 if the arguments evaluates to zero or 0 if the argumentevaluates to any other valuelogical “if” operatorreturns arg1 if x evaluates to true or any non-zero value or arg2otherwiselogical choicereturns argN based on the value of x (starting from 1)for x 1 returns arg2, for x 2 returns arg2, etc.returns 0 if x 1 or there are not enough argumentsCopyright 2011-2018 PS&More. All rights reserved.Page 16 of 17

Product Properties Extension – Smart Price plugin(since 2.0) since version 2.0(since 2.4) since version 2.4(since 2.6) since version 2.6Copyright 2011-2018 PS&More. All rights reserved.Page 17 of 17

The template selection condition applied to any product with the template in the selection assigned to the product. You manage templates and assign them to the products using the Product Properties Extension module. Attributes selection condition The attributes selection condition consists o

Related Documents:

5.3.2 Magento SEO: Claves para posicionar una tienda online hecha con Magento 15 5.4 Cómo optimizar Prestashop para SEO 16 5.4.1 Introducción a Prestashop: ¿Qué es Prestashop? 16 5.4.2 Prestashop SEO: Claves para posicionar una tienda hecha con Prestashop 17 6. Las 15 claves del posicionamiento web [SEO tips] 18 7.

your PrestaShop store. To activate a service, such as PS Facebook or PS Metrics and PS Checkout, you will be asked to create your PrestaShop Account or to login to it and then associate your store to it. By allowing your PrestaShop account to be linked to your store, you authorize it to subscribe to services, manage them and be billed.

Ponemos un nombre a la tienda, elegimos la actividad de la tienda, el país, y los datos del usuario que administrará la web. . Para comprobar que todo está bien accedemos con el navegador a nuestra web, para ello ponemos la IP de nuestro equipo y pinchamos sobre la carpeta contenedora del PrestaShop. 2.- Configuración

2.1 Images manquantes Le module utilise par défaut les miniatures générées par PrestaShop. Raison de l'erreur : Si les images des produits n'apparaissent pas dans notre module, cela signifie que ces miniatures n'ont pas été générées sur votre boutique. Pour résoudre le p

Upload Saferpay folder into PrestaShop modules directory . In your Saferpay account there is a possibility to create custom design of payment page with dedicated tools. If you do that, please enter the name of custom design . giropay, iDEAL, Invoice, JCB, Maestro, Mastercard, myOne, PayPal, paydirekt,

1st SIPPS Extension SIPPS Beginning 2nd Challenge Extension Rev, & Extension SIPPS Beginning, Extension Rev 3rd SIPPS Extension Review, Extension, SIPPS Extension Review, Extension, Comprehension strategies with on-grade level Books and Common Lit Passages Challenge & Ready Reading Challen

smart grids for smart cities Strategic Options for Smart Grid Communication Networks To meet the goals of a smart city in supporting a sustainable high-quality lifestyle for citizens, a smart city needs a smart grid. To build smart cities of the future, Information and Communications Techn

o Academic Writing , Stephen Bailey (Routledge, 2006) o 50 Steps to Improving your Academic Writing , Christ Sowton (Garnet, 2012) Complete introduction to organising and writing different types of essays, plus detailed explanations and exercises on sentence structure and linking: Writing Academic English , Alice