robertbell Posted November 27, 2016 Share Posted November 27, 2016 Physical gift cards are fine. Digital gift cards are fine. But is there any way to offer customers a choice of physical or digital (rather than the current option physical and digital)? Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 27, 2016 Share Posted November 27, 2016 It seems that would require a change in the core code. But that should be simple enough. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 27, 2016 Share Posted November 27, 2016 Can we know what skin you are using? In admin, CubeCart stores the value of "1" for email/digital method of delivery, "2" for physical delivery, and "3" for both. However, the skin is coded to offer the customer the email/digital choice if the stored setting value is either "1" or "3", and/or the physical choice if the stored value is either "2" or "3". Thus, if the admin chooses "Digital and Physical", these two choices will be presented to the customer in a drop-down selector for which the customer chooses one of the choices. So, I think the wording in the admin settings page can be better phrased: "Delivery Method Choice(s) Offered to Customer": Can Choose Digital Choice Only, Can Choose Physical Choice Only, Can Choose Digital or Physical Quote Link to comment Share on other sites More sharing options...
robertbell Posted November 27, 2016 Author Share Posted November 27, 2016 I'm using Foundation. I noticed the customer-facing dropdown, but if I as a customer select physical, I also get digital. I as a merchant don't want to give two gift certificates for the price of one... Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 27, 2016 Share Posted November 27, 2016 "If I as a customer select physical, I also get digital." I see. Interesting. I'll submit a bug report. But CubeCart is very good at managing the code number for GCs (and Coupons). To use/redeem a GC, the customer enters the code number and the grand total is adjusted for as much as the GC has value. Any remaining value is databased. Do you have concerns that CubeCart will not be able to effectively manage the code number of the GC? Quote Link to comment Share on other sites More sharing options...
robertbell Posted November 27, 2016 Author Share Posted November 27, 2016 10 minutes ago, bsmither said: Do you have concerns that CubeCart will not be able to effectively manage the code number of the GC? Yep. Because we are primarily a bricks-and-mortar store, to which customers bring the physical gift card. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 27, 2016 Share Posted November 27, 2016 Revisiting the CubeCart page where the purchaser is making their delivery choice. If the admin allows for Only Physical delivery, the field to enter an email address is not supposed to be present. Thus, no email address, no email gets sent to the recipient. From your comments, you do not want to inhibit a GC purchaser from choosing an email delivery. Is this correct? Quote Link to comment Share on other sites More sharing options...
robertbell Posted November 27, 2016 Author Share Posted November 27, 2016 No. It would be nice if a customer could choose to buy a physical gift card for use only in the physical store, or a digital one for use only in the shopping cart. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 12, 2016 Share Posted December 12, 2016 It is true that, if the admin gives the customer a choice of physical or digital GC, the field for the email address is present. Physical only will have the email address field not display. Thus the attempt to email a GC will fail. But, in all cases, an attempt will be made to email a GC regardless of what method the customer chose. To restrict the attempt to email if the customer chose digital, please try this edit: In /classes/order.class.php, near line 463, find: // Send Gift Certificate if (!empty($item['custom']) && !empty($item['coupon_id'])) { $this->_sendCoupon($item['coupon_id'], unserialize($item['custom'])); } Change to: // Send Gift Certificate if (!empty($item['custom']) && !empty($item['coupon_id']) && $item['digital']) { $this->_sendCoupon($item['coupon_id'], unserialize($item['custom'])); } CubeCart flags the order inventory record as digital=true if the customer chose the email method of delivery, digital=false if physical. Quote Link to comment Share on other sites More sharing options...
robertbell Posted December 15, 2016 Author Share Posted December 15, 2016 Thanks. We'll stick with physical only for now, but I'll file the code away if the question ever gets revisited. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.