Nicolas Godon
Forum Replies Created
-
Thanks a lot,
I did find this link before consulting with you, which woocommerce currency plugin do you recommend then ? Which ones would be approved by Stripe, proven to be compatible/working with your plugin and my setup ?
Best,
NG
What currency switcher do you recommend, then, given our current situation, versions wise?
Thanks a lot for your answer.
Basically, if you browse the website in euro, the Google pay gateway shows the euro sign. This goes across. But the amount itself has not been converted to euro : it’s the default currency (CHF) amount, but with a euro sign after. Hence my sentence : “the correct currency is sent, not the correct amount”. I hope I’ve clarified.Regarding the status,
### WordPress Environment ###
WordPress address (URL): https://dev.printthemall.com
Site address (URL): https://dev.printthemall.com
WC Version: 3.6.5
Log Directory Writable: ❌ To allow logging
make /var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/uploads/wc-logs/ writable or define a custom WC_LOG_DIR.WP Version: ❌ 5.2.14 – There is a newer version of WordPress available (5.9)
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.2.34
PHP Post Max Size: 16 MB
PHP Time Limit: 60
PHP Max Input Vars: 1000
cURL Version: 7.29.0
NSS/3.53.1SUHOSIN Installed: –
MySQL Version: 5.5.68-MariaDB
Max Upload Size: 2 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ❌ wp_remote_get() failed. Contact your hosting provider.### Database ###
WC Database Version: 3.6.5
WC Database Prefix: 7dOn5_
MaxMind GeoIP Database: ✔
Total Database Size: 174.61MB
Database Data Size: 107.55MB
Database Index Size: 67.06MB
7dOn5_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB
7dOn5_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
7dOn5_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
7dOn5_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB
7dOn5_woocommerce_order_items: Data: 1.52MB + Index: 0.33MB
7dOn5_woocommerce_order_itemmeta: Data: 5.52MB + Index: 7.03MB
7dOn5_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
7dOn5_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
7dOn5_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
7dOn5_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
7dOn5_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
7dOn5_woocommerce_payment_tokens: Data: 0.09MB + Index: 0.05MB
7dOn5_woocommerce_payment_tokenmeta: Data: 0.19MB + Index: 0.22MB
7dOn5_woocommerce_log: Data: 0.02MB + Index: 0.02MB
7dOn5_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB
7dOn5_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB
7dOn5_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB
7dOn5_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB
7dOn5_check_email_log: Data: 0.02MB + Index: 0.00MB
7dOn5_commentmeta: Data: 0.08MB + Index: 0.11MB
7dOn5_comments: Data: 3.52MB + Index: 3.47MB
7dOn5_ewwwio_images: Data: 4.52MB + Index: 5.53MB
7dOn5_ewwwio_queue: Data: 0.02MB + Index: 0.02MB
7dOn5_fg_redirect: Data: 0.05MB + Index: 0.00MB
7dOn5_groups_capability: Data: 0.02MB + Index: 0.03MB
7dOn5_groups_group: Data: 0.02MB + Index: 0.02MB
7dOn5_groups_group_capability: Data: 0.02MB + Index: 0.02MB
7dOn5_groups_user_capability: Data: 0.02MB + Index: 0.02MB
7dOn5_groups_user_group: Data: 0.25MB + Index: 0.17MB
7dOn5_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB
7dOn5_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB
7dOn5_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB
7dOn5_itsec_lockouts: Data: 0.02MB + Index: 0.08MB
7dOn5_itsec_logs: Data: 8.02MB + Index: 0.61MB
7dOn5_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB
7dOn5_itsec_temp: Data: 0.02MB + Index: 0.06MB
7dOn5_links: Data: 0.02MB + Index: 0.02MB
7dOn5_options: Data: 4.33MB + Index: 0.16MB
7dOn5_permalinks_customizer_redirects: Data: 0.02MB + Index: 0.00MB
7dOn5_postmeta: Data: 30.56MB + Index: 27.09MB
7dOn5_posts: Data: 22.52MB + Index: 3.55MB
7dOn5_redirects: Data: 0.02MB + Index: 0.00MB
7dOn5_revslider_css: Data: 0.13MB + Index: 0.00MB
7dOn5_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB
7dOn5_revslider_navigations: Data: 0.02MB + Index: 0.00MB
7dOn5_revslider_sliders: Data: 0.02MB + Index: 0.00MB
7dOn5_revslider_slides: Data: 0.02MB + Index: 0.00MB
7dOn5_revslider_static_slides: Data: 0.02MB + Index: 0.00MB
7dOn5_rst_events: Data: 0.02MB + Index: 0.00MB
7dOn5_rst_orders: Data: 0.52MB + Index: 0.00MB
7dOn5_rst_order_products: Data: 0.30MB + Index: 0.00MB
7dOn5_rst_products: Data: 0.05MB + Index: 0.00MB
7dOn5_social_users: Data: 0.02MB + Index: 0.03MB
7dOn5_termmeta: Data: 0.02MB + Index: 0.03MB
7dOn5_terms: Data: 0.02MB + Index: 0.03MB
7dOn5_term_relationships: Data: 0.08MB + Index: 0.05MB
7dOn5_term_taxonomy: Data: 0.02MB + Index: 0.03MB
7dOn5_usermeta: Data: 11.52MB + Index: 15.03MB
7dOn5_users: Data: 1.52MB + Index: 0.81MB
7dOn5_usin_events: Data: 0.02MB + Index: 0.02MB
7dOn5_usin_user_data: Data: 0.23MB + Index: 0.17MB
7dOn5_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB
7dOn5_wc_download_log: Data: 0.02MB + Index: 0.03MB
7dOn5_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB
7dOn5_wc_webhooks: Data: 0.02MB + Index: 0.02MB
7dOn5_wfblockediplog: Data: 0.02MB + Index: 0.00MB
7dOn5_wfblocks7: Data: 0.02MB + Index: 0.05MB
7dOn5_wfconfig: Data: 0.08MB + Index: 0.00MB
7dOn5_wfcrawlers: Data: 0.02MB + Index: 0.00MB
7dOn5_wffilechanges: Data: 0.02MB + Index: 0.00MB
7dOn5_wffilemods: Data: 5.52MB + Index: 0.00MB
7dOn5_wfhits: Data: 0.02MB + Index: 0.05MB
7dOn5_wfhoover: Data: 0.02MB + Index: 0.02MB
7dOn5_wfissues: Data: 0.09MB + Index: 0.06MB
7dOn5_wfknownfilelist: Data: 3.52MB + Index: 0.00MB
7dOn5_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB
7dOn5_wflocs: Data: 0.02MB + Index: 0.00MB
7dOn5_wflogins: Data: 0.02MB + Index: 0.03MB
7dOn5_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB
7dOn5_wfls_settings: Data: 0.02MB + Index: 0.00MB
7dOn5_wfnotifications: Data: 0.02MB + Index: 0.00MB
7dOn5_wfpendingissues: Data: 0.02MB + Index: 0.06MB
7dOn5_wfreversecache: Data: 0.02MB + Index: 0.00MB
7dOn5_wfsnipcache: Data: 0.02MB + Index: 0.05MB
7dOn5_wfstatus: Data: 0.11MB + Index: 0.06MB
7dOn5_wftrafficrates: Data: 0.02MB + Index: 0.00MB
7dOn5_woo_ua_auction_log: Data: 0.02MB + Index: 0.00MB
7dOn5_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB
7dOn5_ycd_subscribers: Data: 0.02MB + Index: 0.00MB
7dOn5_yith_wcact_auction: Data: 0.02MB + Index: 0.00MB
7dOn5_yith_wcwl: Data: 0.02MB + Index: 0.02MB
7dOn5_yith_wcwl_lists: Data: 0.02MB + Index: 0.05MB
7dOn5_yoast_seo_links: Data: 0.19MB + Index: 0.11MB
7dOn5_yoast_seo_meta: Data: 0.09MB + Index: 0.00MB
crypto_files: Data: 0.02MB + Index: 0.33MB
crypto_membership: Data: 0.02MB + Index: 0.09MB
crypto_payments: Data: 0.02MB + Index: 0.31MB
crypto_products: Data: 0.02MB + Index: 0.25MB### Post Type Counts ###
attachment: 1998
condition_group: 1
mc4wp-form: 4
nav_menu_item: 95
oembed_cache: 61
page: 125
paypal_ipn: 241
popup: 4
popup_theme: 8
post: 12
product: 198
product_variation: 4
restriction: 1
revision: 2017
shop_coupon: 2
shop_order: 4478
shop_order_refund: 62
sm_shortcode: 1
vc_grid_item: 3
wafs: 1
wc_order_status: 1
wpcf7_contact_form: 2### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (46) ###
Redux Framework: by Team Redux – 3.6.15
Addendio PLUS: by Addendio – 1.1.1
iThemes Security: by iThemes – 7.4.1
Check & Log Email: by WPChill – 1.0.4
CMB2: by CMB2 team – 2.9.0
Contact Form 7: by Takayuki Miyoshi – 5.1.4
Countdown Timer for WordPress Block Editor: by Flickdevs – 1.0.5
Countdown Timer For WP Editor Pro: by Flickdevs – 1.0.0
Duplicate Post: by Enrico Battocchi – 3.2.3
301 Redirects: by WebFactory Ltd – 2.72
EWWW Image Optimizer: by Exactly WWW – 4.8.1
Anti-Malware Security and Brute-Force Firewall: by Eli Scheetz – 4.19.69
Groups: by itthinx – 2.10.0
Imsanity: by Exactly WWW – 2.7.2
WPBakery Page Builder: by Michael M – WPBakery.com – 6.6.0
MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6
MC4WP: Mailchimp for WordPress Premium: by ibericode – 4.8.19
Nextend Social Login: by Nextendweb – 3.1.3
PHP Compatibility Checker: by WP Engine – 1.5.0
Popup Maker: by Popup Maker – 1.16.2
Post Types Order: by Nsp Code – 1.9.4.1
Slider Revolution: by ThemePunch – 5.4.8
Shortcode Maker: by CyberCraft – 5.0.4.2
Smart WooCommerce Search: by YummyWP – 1.5.10
UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.16.16Users Insights: by Pexeto – 3.8.0
WooCommerce Cart Expiration: by Liquid Web – 0.2.0 – Not tested with the active version of WooCommerce
Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.9
WPC Product Bundles for WooCommerce (Premium): by WPClever – 5.6.4
WooCommerce Currency Switcher: by realmag777 – 2.2.5.1 – Not tested with the active version of WooCommerce
WooCommerce Email Customizer: by cxThemes – 3.26 – Not tested with the active version of WooCommerce
WooCommerce EU VAT Number: by WooCommerce – 2.3.11 – Not tested with the active version of WooCommerce
WooCommerce Amazon Pay: by WooCommerce – 2.0.0 – 2.1.1 is available
WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3
WooCommerce Stripe Gateway: by WooCommerce – 5.1.0
WooCommerce Google Analytics Integration: by WooCommerce – 1.5.5
WooCommerce Max Quantity: by Isabel Castillo – 1.5.2
Order Barcode: by Nicolas Godon – 1.0
WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.11.1
WooCommerce Product CSV Import Suite: by Automattic – 1.10.11 – Not tested with the active version of WooCommerce
WooCommerce: by Automattic – 3.6.5
WooSidebars: by WooCommerce – 1.4.5
Yoast SEO: by Team Yoast – 11.8 – Not tested with the active version of WooCommerce
Artday Shortcodes: by WossThemes – 1.2.3
WP Mail SMTP: by WPForms – 2.8.0
WP Rocket: by WP Media – 3.6.4### Inactive Plugins (24) ###
Akismet Anti-Spam: by Automattic – 4.1.2
Disable Emails: by WebAware – 1.4.0
FG Magento to WooCommerce Premium: by Frédéric GILLES – 2.49.0 – Not tested with the active version of WooCommerce
FG Magento to WooCommerce Premium Custom Order Statuses module: by Frédéric GILLES – 1.0.0 – Not tested with the active version of WooCommerce
GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership: by GoUrl.io – 1.4.19
GoUrl WooCommerce – Bitcoin Altcoin Payment Gateway Addon. White Label Solution: by GoUrl.io – 1.2.8
Health Check & Troubleshooting: by The ww.wp.xz.cn community – 1.3.2
Hello Dolly: by Matt Mullenweg – 1.7.2
Payment Plugins for Stripe WooCommerce: by Payment Plugins
[email protected] – 3.3.16PayPal IPN for WordPress: by Angell EYE – 1.1.5
Permalinks Customizer: by YAS Global Team – 2.7.0
Restrict User Access: by Joachim Jensen – DEV Institute – 2.0
Simple 301 Redirects – Addon – Bulk CSV Uploader: by Webcraftic <[email protected]>
Ash Durham <[email protected]> – 1.2.5SpectroCoin: by SpectroCoin – 0.1 – Not tested with the active version of WooCommerce
WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 – Not tested with the active version of WooCommerce
WooCommerce Direct Checkout: by QuadLayers – 2.0.5 – Not tested with the active version of WooCommerce
WooCommerce Product Bundles: by WooThemes – 4.14.1 – Not tested with the active version of WooCommerce
WooCommerce Stripe Gateway: by WooCommerce – 4.3.3
WooCommerce Stripe Gateway: by WooCommerce – 4.1.9 – Not tested with the active version of WooCommerce
WOOCS – WooCommerce Currency Switcher: by realmag777 – 1.3.7.5
Wordfence Security: by Wordfence – 7.3.6
WordPress Importer: by wordpressdotorg – 0.6.4
WP Category Permalink: by Jordy Meow – 3.4.0
WPC Product Bundles for WooCommerce: by WPclever.net – 3.7.0### Dropin Plugins (2) ###
advanced-cache.php: advanced-cache.php
maintenance.php: maintenance.php### Settings ###
API Enabled: ✔
Force SSL: –
Currency: CHF (CHF)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 0
Taxonomies: Product Types: bundle (bundle)
external (external)
grouped (grouped)
simple (simple)
variable (variable)
woosb (woosb)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: –
### WC Pages ###
Shop base: #13 – /shop/
Cart: #86 – /cart/
Checkout: #87 – /checkout/
My account: ❌ Page does not contain the shortcode.
Terms and conditions: #169 – /returns-and-refunds/### Theme ###
Name: Print Them All Theme
Version: 1.1.1
Author URL: https://www.talentid.es
Child Theme: ✔
Parent Theme Name: Artday
Parent Theme Version: 1.7.1
Parent Theme Author URL: http://themeforest.net/user/wossthemes
WooCommerce Support: ✔### Templates ###
Overrides: artday/woocommerce/archive-product.php
printthemall/woocommerce/cart/cart-shipping.php version 3.5.0 is out of date. The core version is 3.6.0
printthemall/woocommerce/cart/cart-totals.php
printthemall/woocommerce/cart/cart.php
artday/woocommerce/cart/proceed-to-checkout-button.php
artday/woocommerce/cart/shipping-calculator.php
artday/woocommerce/checkout/form-billing.php
printthemall/woocommerce/checkout/form-checkout.php
artday/woocommerce/checkout/form-coupon.php
artday/woocommerce/checkout/form-shipping.php
printthemall/woocommerce/content-product.php version 3.4.0 is out of date. The core version is 3.6.0
artday/woocommerce/content-product_cat.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/admin-cancelled-order.php version 3.5.0 is out of date. The core version is 3.6.0
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/admin-failed-order.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/admin-new-order.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-completed-order.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-invoice.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-new-account.php version 3.5.0 is out of date. The core version is 3.5.2
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-note.php version 3.5.0 is out of date. The core version is 3.6.0
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-on-hold-order.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-processing-order.php version 3.5.0 is out of date. The core version is 3.5.4
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-refunded-order.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/customer-reset-password.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-addresses.php version 3.2.1 is out of date. The core version is 3.5.4
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-customer-details.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-downloads.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-footer.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-header.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-order-details.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-order-items.php
/var/www/vhosts/printthemall.com/dev.printthemall.com/wp-content/plugins/woocommerce-email-control/templates/emails/deluxe/email-styles.php
artday/woocommerce/global/form-login.php
artday/woocommerce/global/wrapper-end.php
artday/woocommerce/global/wrapper-start.php
artday/woocommerce/loop/loop-end.php
printthemall/woocommerce/loop/loop-start.php
printthemall/woocommerce/myaccount/dashboard.php
artday/woocommerce/myaccount/form-login.php
artday/woocommerce/myaccount/form-lost-password.php
artday/woocommerce/myaccount/my-address.php
artday/woocommerce/myaccount/view-order.php
artday/woocommerce/notices/error.php
artday/woocommerce/notices/notice.php
artday/woocommerce/notices/success.php
artday/woocommerce/order/order-details-customer.php
artday/woocommerce/order/order-details.php
printthemall/woocommerce/product-searchform.php
artday/woocommerce/single-product/add-to-cart/simple.php
artday/woocommerce/single-product/product-image.php
artday/woocommerce/single-product/related.php
artday/woocommerce/single-product/tabs/additional-information.php
artday/woocommerce/single-product/tabs/description.php
printthemall/woocommerce/single-product/tabs/tabs.php
artday/woocommerce/single-product-reviews.php
artday/woocommerce/single-product.phpOutdated Templates: ❌
Learn how to update
### Action Scheduler ###
Complete: 44
Oldest: 2022-01-12 12:37:08 +0000
Newest: 2022-02-11 12:21:21 +0000Pending: 2
Oldest: 2022-02-12 12:21:21 +0000
Newest: 2022-02-12 12:24:01 +0000We do have it too. It’s a real issue. After being purchased, and the stock edited I guess, products get redirected to one another, sometimes 3-4 products pointing to the one which got sold. We updated to v2.3.0, any chance it has been adressed ?
Forum: Plugins
In reply to: [Permalinks Customizer] Arbitrarily added redirects+1
Same here. When editing / updating a product, other products, unrelated, get redirected to this product… A bit of a nightmare, because even selling a product, I guess by editing its sotck, create those random redirects.Most likely the client will ask me for some product_name echo + order above each < ul > tag
Given the effort, http://studiocmyk.com/asfaltex2.com/?page_id=1963 doesn’t look half bad.
I’ll start a new thread is needed. Thanks !!
I’m quite happy with the result.
And your amazing support did it all, I’ll spread the word around me.
Thanks from Barcelona, Spain !
It’s working !
http://studiocmyk.com/asfaltex2.com/?page_id=1963
Now I have to put a item-limit like a post page (10+ create a nav underneath the objects). I’ll look into that now. Thanks !!
Thanks !
I’ll try that ASAP
Ok !
And this would work with a post’s attachments. For all attachments for a custom post type such as “products” [all products], how should I proceed ?
Yeah, the HTML way and replace elements to generate the same code was my approach. Here’s single-products.php loop bit for attachments display :
<?php if($rt_attached_documents && !$password_protected):?> <?php if(@!$tabbed_page):?><div class="line"></div><?php endif;?> <div class="pane"> <!-- document icons --> <div class="doc_icons"> <?php if(trim($rt_attached_documents)): $rt_attached_documents = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $rt_attached_documents)); $rt_attached_documents = explode("\n", $rt_attached_documents); endif; if(is_array($rt_attached_documents)){ echo "<ul>"; foreach($rt_attached_documents as $a_file){ if(strpos($a_file,"|")) { $a_file = explode("|", $a_file); $fileURL = trim( $a_file[1] ); $fileName = trim( $a_file[0] ); }else{ $fileURL = trim( $a_file ); $fileName = ""; } echo "<li>"; if(strpos($fileURL, ".doc")){ echo '<a href="'.$fileURL.'" title="'.__('Download Word File','rt_theme').'"><img src="'.THEMEURI.'/images/assets/icons/Word.png" alt="'.__('Download Word File','rt_theme').'" class="png" /></a>'; } elseif(strpos($fileURL, ".xls")){ echo '<a href="'.$fileURL.'" title="'.__('Download Excel File','rt_theme').'"><img src="'.THEMEURI.'/images/assets/icons/File_Excel.png" alt="'.__('Download Excel File','rt_theme').'" class="png" /></a>'; } elseif(strpos($fileURL, ".pdf")){ echo '<a href="'.$fileURL.'" title="'.__('Download PDF File','rt_theme').'"><img src="'.THEMEURI.'/images/assets/icons/File_Pdf.png" alt="'.__('Download PDF File','rt_theme').'" class="png" /></a>'; } elseif(strpos($fileURL, ".ppt")){ echo '<a href="'.$fileURL.'" title="'.__('Download PowerPoint File','rt_theme').'"><img src="'.THEMEURI.'/images/assets/icons/File_PowerPoint.png" alt="'.__('Download PowerPoint File','rt_theme').'" class="png" /></a>'; } else{ echo '<a href="'.$fileURL.'" title="'.__('Download File','rt_theme').'"><img src="'.THEMEURI.'/images/assets/icons/File.png" alt="'.__('Download File','rt_theme').'" class="png" /></a>'; } //file name if( $fileName ) echo "<strong>" .$fileName ."</strong>"; echo "</li>"; } echo "</ul>"; } ?> </div> <!-- document icons --> </div> <?php endif;?>Ok. We’ve made some progress (products with an “s”):
[loop type=”products”]
[if field=”rtthemeattached_documents”]
Post [field id] has attachments: [field rtthemeattached_documents]
[/if]
[/loop]shows :
http://studiocmyk.com/asfaltex2.com/?page_id=1963
So now I guess I have to inject some thumbnails, to shape the list as I need it, no ? Basically I need it to show as on the “tab” named “documentos adjuntos” on http://studiocmyk.com/asfaltex2.com/?post_type=products&p=2422
Hi Eliot
I tried the one you suggested before your message, no results (blank page).
So I just tried the second option, with no luck either.single-products php reads:
$rt_attached_documents = get_post_meta($post->ID, THEMESLUG.'attached_documents', true);Nothing either.
Must be the custom field option. Here they are, under Dashboard/Contentrttheme_background_color
rttheme_background_image_url
rttheme_background_overlay_image_url
rttheme_enable_background_overlay
rttheme_header_background_image
rttheme_header_text
rttheme_rt_hidden
rtthemeattached_documents
rtthemecustom_sidebar_position
rtthemefree_tab_1_content
rtthemefree_tab_1_title
rtthemefree_tab_2_content
rtthemefree_tab_2_title
rtthemefree_tab_3_content
rtthemefree_tab_3_title
rtthemerelated_products[]
rtthemert_gallery_image_descs
rtthemert_gallery_image_titles
rtthemert_gallery_images
rtthemeshort_description
slide_templateIs there a way to get rtthemeattached_documents to dance along with your plugin ?
I believe you did.
The thing is, I’m not trying to call the page’s attachment and show their thumbnail within that same page, but rather trying to dedicated an unrelated page (an empty one) to show all attachments from a type of custom post, in that case my product.
Could your plugin do that, or will the shortcode always work within the loop it’s paste ?
The title of the page is showing, but the shortcode is not rendering anything. There is no output. Most likely because the page doesn’t have anything attached to it itself ?
Thanks