Hi Everyone
Great Job on creating this module. I was trying to workout between commerce and ubercart and thought id give this a go as it has all the great features.
I was having an issue though with the PPV fields component.
I have setup a content type with just standard fields and used the PPV in the display "full content" type to restict the field.
When browsing that node as an anonymous user I get the following below error. I have tried both the 7.x-10.3 and 7.x-10.xdev versions and get the same errors.
Notice: Undefined variable: group in ms_ppv_field_get_add_to_cart_button() (line 1028 of /home2/wxx756yc/public_html/sites/all/modules/moneysuite/ms_ppv/ms_ppv.module).
Notice: Trying to get property of non-object in ms_ppv_field_get_add_to_cart_button() (line 1028 of /home2/wxx756yc/public_html/sites/all/modules/moneysuite/ms_ppv/ms_ppv.module).
I have setup a full PPV node and it worked ok but not the fields option.
Happy to troubleshoot this with any Dev member.
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | ms_ppv.patch | 631 bytes | yoftahe.addweb |
Comments
Comment #2
Farreres commentedHey, I would need more information on this issue. Sorry for the late reply.
Comment #3
hristos commentedNotice: Undefined variable: group in ms_ppv_field_get_add_to_cart_button() (line 1028 of /home/hbdetuap/yogairka.boyanskidesign.com/sites/all/modules/moneysuite/ms_ppv/ms_ppv.module).
It's appear last version drupal php 7 last version of drupal.org/project/moneysuite
Please help
Comment #4
hristos commentedI set in manage display 2 days but in Checkout are BGN 10.00 for 17996 days
Comment #5
Farreres commentedAbout the original issue, it seems related to groups. As I recall when I was touching the code, groups are rather weird and I couldn't manage to update them, as I also couldn't find any documentation related to them.
I would try not to use groups.
Comment #6
yoftahe.addweb commented@all, Kindly review the attached patch, here I add the conditions for group variable in ms_ppv.module file. This happens because the value is not getting from the group variable.
Let me know, your views after using it.
Thanks