Currency option in Geekshop

nilesh-kulkarni

Apr 20th, 2017 11:36 AM

I need to change currency ($) sign in Geekshop. Kindly let me know what needs to be done :)

devdojo

Apr 21st, 2017 02:24 PM

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.

devdojo

Apr 25th, 2017 07:22 PM

Absolutely, I'll add it to the future feature list :)

jawad-ali

May 12th, 2017 06:43 PM

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/

tariq

May 13th, 2017 01:34 PM

Hi Jawad, Just checked your site. How did you manage to change the currency symbol on your websites homepage and category pages?

jawad-ali

Jun 29th, 2017 06:40 PM

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)?

devdojo

Jun 29th, 2017 10:55 PM

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.

jawad-ali

Jun 30th, 2017 07:50 AM

Hello Admin, Thank for your quick response, It working fine on your site but i am facing issue with my website

here is the link:

www.offily.com

the type is set to double buy still its not showing .00

devdojo

Jun 30th, 2017 01:47 PM

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.