Product discounted price in product page - Hybris Commerce 6.6 - sap-commerce-cloud

I have target discounted price for an SKU, with no product group or customer group filters, just a "target price" delimited by dates, that I want to show in the product page. This is maintained in the product management screen, and it's not promotions related.
As far as I can tell Hybris only calculates the discount when the product is placed in an order (the target price does show correctly in the cart page).
I tried creating a virtual cart in the product detail page, but unless I save the cart, Hybris doesn't allow me to calculate the discount. I don't want to save a cart each time a person goes into a product page.
What's the correct approach for this? Seems a pretty normal requirement.
Thank you

You can use Price Rows with validity period (start and end date). Import all prices with validity date to system. List product prices in PDP on custom section with custom code.

A voucher/discount is applied to a cart, not to a product. Even if a voucher is only applicable for a specific product, hybris will only calculate a discount for an order/cart.

Related

Stripe: Can I create a single "1 month free" promo code for multiple products?

I've been reading though the Stripe documentation but can't figure out if it's possible to have a single promotion code for multiple products, to give a 1-month discount, for products which have both monthly and yearly pricing.
Our product setup is like this:
Basic tier product
Monthly price (upsells to yearly price)
Yearly price
Plus tier product
Monthly price (upsells to yearly price)
Yearly price
I’d like to set up a single promotion code to give to customers, to discount the price of one month, regardless of the product they choose and whether they select monthly or yearly billing.
If I set up a 100% discount coupon then I can apply it to both products, but then if the user chooses annual billing, it discounts the price of the entire year (we only want to discount the price of one month).
If we set up fixed-amount discount coupons, then I'd need to create different promotion codes for each product (we only want to give customers a single code).
Maybe this simply isn't possible with Stripe, but it seems like quite a reasonable/common use case, so wanted check.
Any help much appreciated!
Unfortunately this is not possible with a single Stripe coupon. You would need to create at least two different coupons: one for the basic tier product worth one month, and one for the plus tier worth one month.

Business Central: How to retrieve revenue gross (incl. VAT) from posted sales invoice lines table with Power BI?

I use Power BI to retrieve & visualize sales data from Business Central and so far I did not find any ways to:
retrieve revenue gross on line level (per invoice and item number) of my posted sales invoice
retrieve revenue gross on header level (invoice number) of my posted sales invoice
retrieve VAT on line level (per invoice and item number) of my posted sales invoice, in order to calculate the revenue gross based on the revenue net
Anyone with an easy solution (i m sure there is one as it seems to be a fairly classic request)???
Best and let me know if you need any extra info,
Kevin
There's an 'Amount' and 'Amount Including VAT' column on the Sales Line table, those should give you everything you need.
Annoyingly these are not on the 'Power BI Sales List' query/web service as default, nor the Sales Lines page. If you're a BC developer you could write your own extension to publish a better query.
If not, there is a 'Sales Document Line Entity' page (6403) which includes them as 'Amount' and 'AmountInclVat'. This page is published by default (in SAAS at least) as the 'workflowSalesDocumentLines' web service and you can access it from PowerBI, you will probably want to also include workflowSalesDocuments, the two are related on a composite of Document Type AND DocumentNumber, so that's another challenge for you!

Statistics for people's shoppings

I am building some project (website) on people's shopping (stuff stored in refrigerator) . I need to generate an automatic shopping cart based on people's shopping .
For example if some person buys every week one bottle of milk , than the website will offer the person to buy milk once a week (if there is no milk in refrigerator) .
I am storing shopping history of each family.
But for calculating the shopping cart i need to generate some statistics formula . But i have no clue how to do it. because there might be scenarios (for example birthday) , when the family will buy more products than needed, and it will make me false data for statistics. I want to ignore such scenarios.
Anyone has idea how and what statistics should i use?
pseudocode
assuming the customer had an account and your database is MySQL
every purchase must save customerid, product id/name ,date of purchase,comment(optional) to a table (e.g. purchased table)
customer has their own table that includes at least their personal info(e.g. customer table)
lets say customer browses the product (viewing the website)
• customer clicks the product
• system/server counts the number of purchase in purchase table
• if the number of purchase is more than one then
- get the last date of purchased product - the current date purchased product = frequency of product needed by date
- total number of product purchased / total number of times the product purchased = frequency of product needed by item count
UPDATE
I would suggest that the purchase table has a field that specifies if the current order/purchase is an occasional field instead, so it would be excluded.
example
• system/server counts the number of purchase in purchase table if the purchase is not occasional

How to avoid Shopping Pricing Rule when applying Catalog Cart Price Rule?

I have an ongoing 50% Off Catalog Pricing Rule currently active across my store. A few days back I have also distributed coupon codes on a Radio show with 25% Off. Now i have a situation where customers with these codes are applying the code and receiving a double discount. My $10 product is selling for $3.75 (50% + 25%).
I want a functionality where when the customer applies the coupon code, the code does apply but ONLY on the original price of $10. Thereby selling the product at $7.5. It should overlook the catalog rule. So the customer can choose to either go with the Catalog discount or Coupon discount but not both. Is this possible?

How to add discount per item in NetSuite?

While integrating Salesforce into Netsuite, when creating a Sales Order, I want to be able to add discount per item (and not a single discount for the entire SO)
Going through the help at Netsuite I can't figure if this is possible or not.
It mentions of "Discount Items" - What I understand of this, is that there are "Special Items" that give discount. This is far from the behavior I want. (plus it will duplicate the invoice size)
Is it possible?
Discounts in netsuite are "basically" items so you have a couple of choices here:
A) add a discount item for every item on line
B) add a discount field on every item and apply conditionally on the sales order
C) you could manage B on a different record and match item vs discount plan = discount %
The problem with B is that you wouldn't keep record of when the discount was applied, which is not the case for A and can be avoided in C by populating tue discount record there.
Have you looked into "Price Levels" yet? This will allow you to specify a discount amount on the line itself. Price levels can be set as percentages of the "Base price."

Resources