PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Services/Renderer/ShippingMethodsRender.php +16 -3 1.3.20 → 1.6.5 View file →
@@ -110,11 +110,8 @@
110 110 </div>
111 111 <?php endforeach; ?>
112 112 </div>
113 113 <?php
114 -// do_action('fluent_cart/views/checkout_page_shipping_method_list', [
115 -// 'shipping_methods' => $this->shippingMethods
116 -// ]);
117 114 }
118 115
119 116 public function renderEmpty($message)
120 117 {
@@ -137,6 +134,22 @@
137 134 </path>
138 135 </svg>
139 136 </div>
140 137 <?php
138 + }
139 +
140 + /**
141 + * Get inline SVG icon for a package type.
142 + */
143 + public static function getPackageTypeIcon($type)
144 + {
145 + $style = 'width="14" height="14" viewBox="0 0 16 16" fill="currentColor" style="vertical-align: -2px; opacity: 0.45;"';
146 +
147 + $icons = [
148 + 'box' => '<svg xmlns="http://www.w3.org/2000/svg" ' . $style . '><path fill-rule="evenodd" d="M5 7a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm.5 3.5v-2h3v2z"></path><path fill-rule="evenodd" d="M3.315 2.45a2.25 2.25 0 0 1 1.836-.95h5.796c.753 0 1.455.376 1.872 1.002l1.22 1.828c.3.452.461.983.461 1.526v6.894a1.75 1.75 0 0 1-1.75 1.75h-9.5a1.75 1.75 0 0 1-1.75-1.75v-6.863c0-.57.177-1.125.506-1.59l1.309-1.848Zm1.836.55a.75.75 0 0 0-.612.316l-.839 1.184h3.55v-1.5zm3.599 1.5h3.599l-.778-1.166a.75.75 0 0 0-.624-.334h-2.197zm4.25 1.5h-10v6.75c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25z"></path></svg>',
149 + 'envelope' => '<svg xmlns="http://www.w3.org/2000/svg" ' . $style . '><path fill-rule="evenodd" d="M3.75 2.5a2.75 2.75 0 0 0-2.75 2.75v5.5a2.75 2.75 0 0 0 2.75 2.75h8.5a2.75 2.75 0 0 0 2.75-2.75v-5.5a2.75 2.75 0 0 0-2.75-2.75zm-1.25 2.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v5.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25zm2.067.32a.75.75 0 0 0-.634 1.36l3.538 1.651c.335.156.723.156 1.058 0l3.538-1.651a.75.75 0 0 0-.634-1.36l-3.433 1.602z"></path></svg>',
150 + 'soft_package' => '<svg xmlns="http://www.w3.org/2000/svg" ' . $style . '><path d="M4 7.5a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5z"></path><path d="M3.25 10.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75"></path><path fill-rule="evenodd" d="M3.25 2a2.75 2.75 0 0 0-2.75 2.75v6.5a2.75 2.75 0 0 0 2.75 2.75h9.5a2.75 2.75 0 0 0 2.75-2.75v-6.5a2.75 2.75 0 0 0-2.75-2.75zm7.184 1.5h-7.184c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h7.184l-.5-.273a2.75 2.75 0 0 1-1.434-2.414v-3.626c0-1.006.55-1.932 1.433-2.414zm3.566 7.552v-6.104a1 1 0 0 0-1.479-.878l-1.87 1.02a1.25 1.25 0 0 0-.651 1.097v3.626c0 .457.25.878.651 1.097l1.87 1.02a1 1 0 0 0 1.479-.878"></path></svg>',
151 + ];
152 +
153 + return $icons[$type] ?? $icons['box'];
141 154 }
142 155 }