• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

CorneliuTusnea
#1 Posted : Tuesday, November 7, 2006 5:38:32 AM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

When I display a product I would like to check if the product is part of some special offer and write the details of that offer on the product page.
For example I would like to write on the product page that is product has FreeShipping for a limited time and write the end date of the offer as the end date of the free shipping.

Is there any call I can use to see if the product is part of an offer and the details of the offer?

Thanks,

Corneliu.
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

jetheredge
#2 Posted : Tuesday, November 7, 2006 12:06:36 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

You can call Offer.GetAllOffers() which will return a list of the available offers for the store. You will then have to loop through these and check the OfferType property to determine the type of offer. If it is a type of offer that affects a product then you can display its details. If it only applies to specific products then you'll have to use a ComponentSettingsManager object that is initialized to the Offers Id that you can use to pull that type of offers settings. You can find where we store these settings in BVModules/Offers/ and look in the edit.ascx.vb file and you'll see what each of the settings are named. They are different for every offer type though, so you'll have to account for this in your code.
Justin Etheredge
Senior Software Engineer
BVSoftware
CorneliuTusnea
#3 Posted : Tuesday, November 7, 2006 3:55:09 PM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

Thanks Justin,

I built this query to make it faster to get this data and not have to loop all the offers & products to get this information:
select TOP 1 bvc_Offers.Name, bvc_Offers.EndDate from bvc_ComponentSettingList
left join bvc_Offers ON bvc_ComponentSettingList.ComponentID = bvc_Offers.bvin
where bvc_ComponentSettingList.ListName = 'FreeShippingProducts'
AND bvc_ComponentSettingList.ComponentType = 'Offer'
AND bvc_ComponentSettingList.ComponentSubType = 'Free Shipping'
AND bvc_Offers.Enabled = 1
AND bvc_Offers.RequiresCouponCode = 0
AND bvc_Offers.EndDate > GETDATE()
AND Setting1 = @product_bvin

It's easy to adapt it for other type of offers. All you need is the product bvin and you will know if it's part of an offer that is valid, active and requires no promotional code.

Cheers,
Corneliu.
www.bestgames.com.au
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012