Share
It's been requested by multiple enterprise clients to remove discount code for particular products.
We thought to have 2 solution
[data-reduction-form="update"] {
display: none
}
#Reject Discount for few products
reject = false
Input.cart.line_items.select do |line_item|
product = line_item.variant.product
if product.tags.include?('reject_code')
reject = true
end
end
if reject and Input.cart.discount_code
Input.cart.discount_code.reject(
message: "discount can't applied! for this product."
)
end
Output.cart = Input.cart
Share
Looking for
Solutions?
Yaani PatelJuly 22, 2022
Aashish Kasma & Vedika PandeySep 14, 2022
Learning comes not only with training but it comes as we facilitate the learning of the organization as well as individuals and the clients continuously refurbishing ourselves.
We believe in Innovation and have started our company based on that concept. When you don't transform you become stagnant.
Innovation Transformation
Growth.
We work efficiently as a team. We self-monitor. We deliver results efficiently with the help of multiple perspectives and skill sets. We form strong working relationships as we communicate well with each other.
Lucent Innovation, © 2023. All rights reserved.Privacy policy