Jump to content

Gift Card Product Code


Christopher Short
 Share

Recommended Posts

From my analysis of the code:

We can bypass the code in the admin script that checks for this giftcard product_code condition. Then, as long as the giftcard product_code is way out of range than a regular inventory item product_id, for example 999999, you should be safe enough. (Can't really use '0000' even though the inventory table will never have a product_id of 0, CubeCart does use 0 (if I recall correctly) for the admin-entered non-inventory item(s) when editing an order summary.)

 

 

Edited by bsmither
Link to comment
Share on other sites

3 hours ago, bsmither said:

From my analysis of the code:

We can bypass the code in the admin script that checks for this giftcard product_code condition. Then, as long as the giftcard product_code is way out of range than a regular inventory item product_id, for example 999999, you should be safe enough. (Can't really use '0000' even though the inventory table will never have a product_id of 0, CubeCart does use 0 (if I recall correctly) for the admin-entered non-inventory item(s) when editing an order summary.)

 

 

This is 100% correct. CubeCart will think its a standard product if the product code is numeric. 

If I wrote CubeCart again I would suggest a dropdown menu for product types with values product, service, gift card etc.. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...