Currency option in Geekshop
I need to change currency ($) sign in Geekshop. Kindly let me know what needs to be done :)
Hey Nilesh-kulkarni,
This can be changed inside of the following file: resources/views/themes/default/product/read.blade.php
on line 34:
<h4 class="price">${{ $product->price }}</h4>
Or if you are using the white theme it will be located at: resources/views/themes/white/product/read.blade.php
Hope that helps you out :)
Thanks. Talk to you soon.
Hi, How can I change the currency symbol at homepage. Because after changing the symbol at resources/views/themes/white/product/read.blade.php this location the symbol is still same on the homepage and the same this is happening in the category page. https://offily.com/category/food-and-drink https://offily.com/
Hi Admin,
I want to add .00 after the product price what are the deafult value for the price field in product database at this link
(geekshop)/admin/database/bread/products/edit
and at the below given link
(geekshop)/admin/database/products/edit.
I think I have made a mistake that's why the decimal points are not coming with the price. Also is there any way to add two prices with a product (old price & new price)?
Hey Jawad,
Actually right now the Type is a double
so this should workout fine. You should be able to see the decimal point price. You can take a look at this link right here: http://geekshop.devdojo.com/product/paper-towel-usb-charger-hub You can see the price is $49.99 :)
Let me know if you are not able to add the decimal point.
Next, if you want to add another price, you can add another row in the database such as old_price
and then update the 'BREAD' (geekshop)/admin/database/bread/products/edit
,
Next, the product bread is using a customized view so you will have to add this:
<div class="form-group">
<label for="name">Price</label>
<input type="text" class="form-control" name="old_price" placeholder="Old Price" value="@if(isset($dataTypeContent->old_price)){{ $dataTypeContent->old_price }}@endif">
</div>
after line 162 of resources/views/vendor/voyager/products/edit-add.blade.php
Then inside of your theme you will need to implement this as well :)
Let me know if that helps. Thanks.
can you share with me a snippet of the customization you made. it may be within your code as to why this is happening.
if you want leading zeros you may need to add money_format function. Take a look at this article https://stackoverflow.com/questions/294865/how-do-i-format-a-number-to-a-dollar-amount-in-php Let me know if that helps :)
Thanks.