Closed (fixed)
Project:
Commerce Node Checkout
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 May 2012 at 16:02 UTC
Updated:
26 May 2012 at 00:01 UTC
Jump to comment: Most recent
Comments
Comment #1
larowlanHi
This can be done if you know some Drupal coding with a custom module.
Look at hook_commerce_node_checkout_line_item_alter in the api docs. You've got access to the product and the node at the time of add-to-cart. You can test if that product is the 'buy promoted' one and update the node there if you like.
Lee
Comment #2
codenamerhubarb commentedA bad hack way to achieve this:
In commerce_node_checkout.rules.inc
after these lines:
I added:
...where 13 and 16 are the IDs of my "promote to front page" pay-to-publish products.