Source of file EcommerceTaskCartManipulationCurrent.php
Size: 0,800 Bytes - Last Modified: 2021-12-23T10:39:35+00:00
/var/www/docs.ssmods.com/process/src/src/Tasks/EcommerceTaskCartManipulationCurrent.php
12345678910111213141516171819202122232425262728 | <?php namespace Sunnysideup\Ecommerce\Tasks; use SilverStripe\Dev\BuildTask; use SilverStripe\ORM\DB; /** * shows you the link to remove the current cart. * * @authors: Nicolaas [at] Sunny Side Up .co.nz * @package: ecommerce * @sub-package: tasks */ class EcommerceTaskCartManipulationCurrent extends BuildTask { protected $title = 'Clear the current Cart'; protected $description = ' Removes the cart that is currently in memory (session) for the currrent user. It does not delete the order itself.'; public function run($request) { DB::alteration_message('<br /><br /><br /><br /><br /><br /><a href="/shoppingcart/clear/" target="_debug">click here to clear the current cart from your session</a>.<br /><br /><br /><br /><br /><br />'); } } |