Close

Attach script to plugin

shvager87
10 years ago
#4052 Quote
Avatar
  • 11
Hello! I need to insert code of creditpay system to quick view. It has own API? I need only paste simple block
<div class="buy_in_credit" razmer="78x21" cena="@defaultProductVariant.ProductVariantPrice.PriceWithDiscountValue" nazva="@Model.ProductDetails.Name" tovarpage="@Url.RouteUrl("Product", new { SeName = Model.ProductDetails.SeName })"></div>

but it does not work because external script was not attached. On main site this script wroted in Root,Head
<script type="text/javascript" src="http://creditpay.com.ua/api/js/script.js"></script>


Where I must to write this to this script will work?
Thank You!
Boyko
10 years ago
#4058 Quote
Avatar
  • 1570
shvager87 wrote:
Hello! I need to insert code of creditpay system to quick view. It has own API? I need only paste simple block
<div class="buy_in_credit" razmer="78x21" cena="@defaultProductVariant.ProductVariantPrice.PriceWithDiscountValue" nazva="@Model.ProductDetails.Name" tovarpage="@Url.RouteUrl("Product", new { SeName = Model.ProductDetails.SeName })"></div>

but it does not work because external script was not attached. On main site this script wroted in Root,Head
<script type="text/javascript" src="http://creditpay.com.ua/api/js/script.js"></script>


Where I must to write this to this script will work?
Thank You!


Hi shvager87,

You need to add your html in the Quick View first.
Here are the files for Simple and Grouped products (if you use older version it is Single and Multi).
Plugins\SevenSpikes.Nop.Plugins.QuickView\Views\QuickViewCatalog\

You need to add your button in the _Single.cshtml file for example.
You can also link your scripts there as well.

Hope this helps!

Best Regards,
Nop-Templates.com Support Team
Regards,
Nop-Templates.com Team