Joe

another option is to set SS_VENDOR_METHOD="copy" in your .env file, and then just run composer vendor-expose locally as normal, but it will use the copy method rather than auto moving forward

Joe

so locally you would just run composer vendor-expose copy to run with the specified copy mode, and then you could essentially just re-deploy public/_resources, which will now contain copies of the files, rather than symlinks to the directories that contain them

Joe

you can set your vendor-expose method to copy and deploy that result

Joe

it’s a bit of a long-shot, though lol

👍 (1)
Joe

I saw that “r is undefined” issue once before - for me it was an issue where the admin module was mis-tagged, and I happened to have downloaded it during that window. I had to kill my vendor folder and re-run composer install

Joe

I think you might be able to do something like $MonthDate1.Format('x') where x is whatever the code is for the short day

Joe
  1. public function showSalePrice() {
  2. $children = $this->Children()
  3. // dummy filter since I don't know your actual logic
  4. ->filter('SalePrice', true);
  5.  
  6. return $children->count() > 0;
  7. }
Joe

I’d probably have a separate controller method that:

• gets children • filters for any children with your condition true • checks ->count() to make sure you have children with that condition • returns a boolean indicating children with your condition

so you’d end up with something like:

  1. <% if $showSalePrice %>
  2. THERE ARE ITEMS IN THE SALE
  3. <% end_if %>
  4. <% loop $Children %>
  5. ...
  6. <% end_loop %>
😁 (1)
Joe

also, unless i’m missing something, that issue above (#100) is still open, not “closed and fixed”