BV Commerce Forum
»
BV Commerce Support
»
Development
»
Adding Custom Replacement Tags to Email Templates
Rank: Member
Joined: 11/20/2005(UTC) Posts: 122
|
My experience with BV so far is that it has many ways that it can be extended. However, our store is having nearly everything drop shipped, and I have run into a wall when it comes to customizing the drop ship email beyond the predefined tags that come OOTB (without changing any core code).
For example, some products come in sets but it would work to our advantage in product feeds to price them individually. I managed to figure out how to customize the front end of the store to require products to be ordered in sets of X, however, I need the quantity in the email to be converted to the appropriate number for the manufacturer. So, if there are 4 items per box and the customer orders 4 items, I need it to show on the drop ship email that the customer is ordering 1 box.
It would also be helpful to put some custom logic in to change the SKU based on quantity rules. For example, some products have a cost savings when they ship via truck freight if they go without the box. However, there is a minimum quantity to have them shipped that way. If the customer orders more than the minimum quantity, we would like to change the SKU to the one with the cost savings in the drop ship email.
Anyway, before I go too far down the path of rewriting a major portion of the email functionality just to put a couple of custom replacement tags in, I just wanted to check whether anyone has found a way to put them in without taking such a drastic measure. Upon analysis of the code, there doesn't appear to be a way to inject custom tags but maybe I am missing something. |
|
|
|
|
Rank: Member
Joined: 11/25/2003(UTC) Posts: 370
|
Most often I have changed the core. Editing the ReplacementTags() Function in either Orders.Order.vb or Catalog.InternalProduct.vb Do a Project search on Core for ReplacementTags(). I suppose it could be done outside the Core using Collection(Of EmailTemplateTag) but I have not experimented with that myself. |
|
|
|
|
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.