Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › ViaBill Pricetags feature
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › ViaBill Pricetags feature
- This topic has 5 replies, 3 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Neighborhood
-
November 14, 2014 at 4:33 am #128209
Hi Swift,
I have teamed up with a Danish company called ViaBill so that my customers can pay via installment payments over 24 months in stead of paying the full price up-front.
ViaBill offers some pretty cool features, so that the customer can see how much he/she will have to pay pr. month for 24 months. The feature can be seen here below the total price: http://skateshop.dk/produkt/independent-trucks-139-stage-x-forged-hollow-reynolds/.
This has been set up by adding this script to the footer.php:
<script>
(function(){var o=document.createElement(‘script’);
o.type=’text/javascript’;
o.async=true;
o.src=’https://app.ibill.dk:443/psp/web/webshop/pricetag/lD_c4e7tnlY%3D’;
var s=document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(o,s);
})();
</script>Afterwards, I have added this div tag to content-simple-product.php to insert the “ViaBill Pricetag” (the one that says “eller kun kr. xx pr. md.”) on the product page:
<div style=”height:70px”>
<div padding=”30px 0px 0px 0px” class=”ViaBill_pricetag_list” price=”<?php echo $product->get_price(); ?>”></div>I’m very satisfied with how this looks on the product page. However, I have two questions:
1. The above mentioned scripts have been added to the parent theme and not the child theme. I guess this will make the “ViaBill Pricetags” disappear when WooCommerce or the Neighborhood Theme is updated. How should I add this to the child theme in stead of the parent theme? In my child theme I have only got the style.css and functions.php files.
2. I want the “ViaBill Pricetag” to be shown on the cart and checkout page as well so that it looks like in the attached pictures. However, I’m not sure in which theme files I should add the div tags to do this. Could you lead me in the right direction?
Looking forward to your reply.
Cheers
JesperAttachments:
You must be logged in to view attached files.November 14, 2014 at 11:38 am #128335Hi,
Regarding the scripts you can include the javascript inside the custom js option in the Theme options.
For the content-simple-product.php you should create it in the child theme using the same folder structure so it can overide the same existent file in the parent theme.
Regarding 2#.
Try in neighborhood\woocommerce\cart\cart-totals.php after Order Total code around line 78.It seems to be used for the Cart and checkout page.
-Rui
November 15, 2014 at 11:01 am #128547Hi Rui!
Thanks for your reply!
What do you mean by “using the same folder structure” – Should I just make a copy of content-simple-product.php and place it in the child theme folder?
Cheers
November 17, 2014 at 12:32 pm #128771Hi,
This means that inside your child theme you should create a woocommerce folder and inside copy the content-simple-product.php
-Rui
January 7, 2015 at 12:27 pm #139664Hi Rui,
Regarding my second question (about the ViaBill PriceTag feature) it doesn’t seem to work when inserted around line 78 in neighborhood\woocommerce\cart\cart-totals.php. Inserting the div tag here will just make it look like in the attached screenshot (the ‘Proceed to checkout’ button etc. have disappeared). Do you know what to do?
Looking forward to your reply!
Thanks
Attachments:
You must be logged in to view attached files.January 8, 2015 at 11:33 am #139950Hi
Unfortunately we simply cannot support user customisations for 3rd party plugins, as these are done so at the user’s knowledge and responsibility. If you are struggling, I’d recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:
Hope that helps.
– Kyle
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.