LiamC

How do I return the current URL? Director::BaseURL() just returns /

LiamC

I have changed the permission and it wont allow it

LiamC

[Warning] SimpleXMLElement::asXML(/home/oneweigh/public_html/GoogleShoppingModule/Files/feed.xml): failed to open stream: Permission denied

LiamC

does anyone know why this isnt working?

  1. $result = $xml_data->asXML(Director::baseFolder().'/GoogleShoppingModule/Files/feed.xml');

LiamC

yeah good point, thank you. I am using that module so I know now I needs custom work. Thank you 🙂

👍 (1)
LiamC

with silvershop is there anyway to define shipping methods per product or per product group? the client has some products that need to be shipped by a pallet and some normally

LiamC

okay a flush fixed it, dont worry! thanks anyway

LiamC
  1. if(class_exists(Subsite::class)){
  2. $list = $gridField->getList()->filter(array('SubsiteID' => $SubsiteID));
  3. $gridField->setList($list);
  4. }