Geekshop making image link to amazon

Posted In General
  • first-last-1 2 years ago
    I'm wondering how to make it so that once an image is clicked it links to the amazon link instead of the product page?
    Thanks

    I'm wondering how to make it so that once an image is clicked it links to the amazon link instead of the product page? Thanks

  • first-last-1 2 years ago
    I tried Ferdinand's method but it didn't seem to work
    >There doesn't seem to be an option there yet. At least i couldn't find it. But you could change the variable in the template files. For the product list view you'll find the file "product.blade.php" in "/resources/views/themes/(your template)/includes". There on line 18 you can change the entry "{{ $product->link() }}" to "{{ $product->product_url() }}" and set the "target" to "_blank" instead of "_self".

    I tried Ferdinand's method but it didn't seem to work

    There doesn't seem to be an option there yet. At least i couldn't find it. But you could change the variable in the template files. For the product list view you'll find the file "product.blade.php" in "/resources/views/themes/(your template)/includes". There on line 18 you can change the entry "{{ $product->link() }}" to "{{ $product->product_url() }}" and set the "target" to "_blank" instead of "_self".

  • devdojo 2 years ago
    @First-last-1,
    
    Have you managed to get this resolved yet? Just FYI, it should be:
    
    ```php
    {{ $product->purchase_url }}
    ```
    
    Let me know if that helps. Thanks.

    @First-last-1,

    Have you managed to get this resolved yet? Just FYI, it should be:

    {{ $product->purchase_url }}
    

    Let me know if that helps. Thanks.

  • fr05t90 2 years ago
    looking to do the same here. Wondering how and where I make these changes. 
    
    Thanks!

    looking to do the same here. Wondering how and where I make these changes.

    Thanks!

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!